:root {
  --auth-bg-base: #0f172a;
  --auth-panel: rgba(255, 255, 255, 0.92);
  --auth-panel-border: rgba(255, 255, 255, 0.35);
  --auth-text: #10213a;
  --auth-muted: #5f6f86;
  --auth-accent: #0f766e;
  --auth-accent-dark: #0b5b55;
  --auth-accent-soft: rgba(15, 118, 110, 0.1);
  --auth-input: #f4f7fb;
  --auth-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  --auth-alert-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body.login-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  background:
    linear-gradient(135deg, rgba(7, 20, 43, 0.88), rgba(15, 118, 110, 0.54)),
    url('../images/background.JPG') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

body.login-page::before,
body.login-page::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

body.login-page::before {
  width: 320px;
  height: 320px;
  top: -90px;
  right: -80px;
  background: rgba(255, 255, 255, 0.12);
}

body.login-page::after {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: -100px;
  background: rgba(13, 148, 136, 0.22);
}

.login-box {
  width: 440px;
  max-width: calc(100vw - 32px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.login-box.auth-box-wide {
  width: 480px;
}

.login-card {
  border: 1px solid var(--auth-panel-border);
  border-radius: 28px;
  background: var(--auth-panel);
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.login-card-body {
  padding: 36px 34px 32px;
  border-radius: 28px;
  background: transparent;
}

.brand-lockup {
  text-align: center;
  margin-bottom: 26px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--auth-accent-soft);
  color: var(--auth-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.brand-title {
  margin: 0;
  color: var(--auth-text);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-subtitle {
  margin: 10px auto 0;
  max-width: 320px;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.7;
}

.brand-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 24px 0 28px;
}

.brand-logo {
  height: 76px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.12));
}

.alert {
  border: 0;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: var(--auth-alert-shadow);
}

.login-form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--auth-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.login-form .input-group {
  margin-bottom: 18px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.login-form .input-group:focus-within {
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12), inset 0 0 0 1px rgba(15, 118, 110, 0.4);
  transform: translateY(-1px);
}

.login-form .form-control,
.login-form .input-group-text {
  height: 56px;
  border: 0;
  background: var(--auth-input);
}

.login-form .form-control {
  color: var(--auth-text);
  font-size: 15px;
  font-weight: 600;
  padding-left: 18px;
}

.login-form .form-control::placeholder {
  color: #8b98ab;
  font-weight: 500;
}

.login-form .input-group-text {
  color: var(--auth-accent);
  padding-right: 18px;
  font-size: 15px;
}

.login-submit {
  margin-top: 8px;
  height: 56px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--auth-accent), #14b8a6);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 18px 36px rgba(15, 118, 110, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-submit:hover,
.login-submit:focus {
  background: linear-gradient(135deg, var(--auth-accent-dark), var(--auth-accent));
  box-shadow: 0 20px 40px rgba(15, 118, 110, 0.34);
  transform: translateY(-1px);
}

.login-footer-note {
  margin: 20px 0 0;
  text-align: center;
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.7;
}

.auth-link-row {
  margin-top: 18px;
  text-align: center;
}

.auth-link {
  color: var(--auth-accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.auth-link:hover,
.auth-link:focus {
  color: var(--auth-accent-dark);
  text-decoration: none;
}

.auth-copy {
  margin-bottom: 24px;
  text-align: center;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 576px) {
  .login-box,
  .login-box.auth-box-wide {
    max-width: calc(100vw - 20px);
  }

  .login-card-body {
    padding: 28px 22px 24px;
  }

  .brand-title {
    font-size: 24px;
  }

  .brand-logo {
    height: 62px;
  }
}
