:root {
  --pol-navy: #081b34;
  --pol-navy-2: #0d2446;
  --pol-gold: #d79a37;
  --pol-gold-dark: #c98724;
  --pol-text: #16233a;
  --pol-muted: #617089;
  --pol-input: #bfc6d1;
  --pol-footer: #2a3445;
  --pol-bg: #fbf8f4;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--pol-text);
  background: radial-gradient(
    circle at top center,
    #ffffff 0%,
    #f8f5f1 48%,
    #f2ede7 100%
  );
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: linear-gradient(180deg, #04172a 0%, #081b34 100%);
  border-bottom: 2px solid var(--pol-gold);
}

.brand {
  color: #fff;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand:hover {
  color: #fff;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.secure-link {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.secure-link:hover {
  color: #fff;
}

.page-wrap {
  flex: 1;
  display: flex;
  /* align-items: center; */
  justify-content: center;
  padding: 5rem 0 2.5rem;
}

.login-panel {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  color: var(--pol-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.page-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 6vw, 4.8rem);
  line-height: 0.95;
  color: #172544;
  margin-bottom: 0.45rem;
}

.page-subtitle {
  color: #465f7d;
  font-size: 1rem;
  margin-bottom: 1.8rem;
}

.form-label {
  font-size: 0.98rem;
  color: #26334c;
  margin-bottom: 0.45rem;
  display: block;
  text-align: left;
}

.form-control {
  min-height: 2.85rem;
  /* border-radius: 0.1rem; */
  border: 1px solid #9da9bb;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.75rem 1rem;
  color: var(--pol-text);
}

.form-control:focus {
  border-color: var(--pol-gold);
  box-shadow: 0 0 0 0.16rem rgba(215, 154, 55, 0.14);
}

.password-wrap {
  position: relative;
}

.password-wrap .form-control {
  padding-right: 2.9rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #4f607a;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.forgot-link-wrap {
  text-align: right;
  margin-top: 0.35rem;
  margin-bottom: 1.35rem;
}

.forgot-link {
  color: #2f628d;
  font-size: 0.95rem;
  text-decoration: underline;
}

.forgot-link:hover {
  color: #2f628d;
}

.signin-btn {
  width: 100%;
  min-height: 3.2rem;
  border-radius: 0.1rem;
  border: 0;
  background: linear-gradient(
    180deg,
    var(--pol-navy-2) 0%,
    var(--pol-navy) 100%
  );
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.9rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  box-shadow: inset 0 0 0 1px rgba(215, 154, 55, 0.45);
}

.signin-btn:hover,
.signin-btn:focus {
  color: #fff;
  background: linear-gradient(180deg, #16325c 0%, #081b34 100%);
}

.help-text {
  color: #4d5d74;
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.9rem;
}

.help-text a {
  color: #2f628d;
  text-decoration: underline;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #55657d;
  font-size: 0.98rem;
}

.footer {
  padding: 1.4rem 0 1.2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  color: var(--pol-footer);
  font-size: 0.97rem;
}

.footer-links a {
  color: var(--pol-footer);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-divider {
  color: var(--pol-gold);
}

.side-tab {
  position: fixed;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 50px;
  border-radius: 4px;
  background: rgba(80, 80, 80, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  user-select: none;
}

@media (max-width: 767.98px) {
  .page-wrap {
    padding: 3rem 0 2rem;
  }

  .page-title {
    font-size: 3.2rem;
  }
  .logo {
    max-width: 200px;
  }
}

@media (max-width: 575.98px) {
  .brand span:last-child,
  .secure-link span:last-child {
    font-size: 0.85rem;
  }

  .login-panel {
    max-width: 100%;
  }

  .footer-links {
    gap: 0.75rem 1rem;
  }
}
