/* =========================================================
   STAFF LOGIN PAGES (doctor-login.html, admin-login.html)
   Tokens come from theme.css.
========================================================= */

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
}

/* ================= PAGE SHELL ================= */

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px 20px 40px;
  background: radial-gradient(800px 500px at 100% 0%, rgba(20, 184, 196, 0.45), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(30, 58, 138, 0.55), transparent 60%),
    linear-gradient(160deg, var(--brand-darker) 0%, var(--brand) 50%, var(--navy) 100%);
}

.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.login-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6%;
  z-index: 5;
}

.login-topbar .nx-logo {
  color: #ffffff;
}

.login-topbar .nx-logo small {
  color: rgba(255, 255, 255, 0.75);
}

.login-topbar .nx-logo .nx-logo-mark {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.back-home {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.back-home:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.login-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 940px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ================= SIDE PANEL ================= */

.login-side {
  padding: 48px 42px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-badge {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.login-side h2 {
  color: #ffffff;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.login-side p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
  margin: 0 0 26px;
}

.login-side-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.login-side-points li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
}

.login-side-points span {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ================= CARD ================= */

.login-card {
  background: #ffffff;
  padding: 48px 42px;
}

.login-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--grad-brand);
  box-shadow: var(--shadow-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.login-card h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.login-sub {
  color: var(--muted);
  margin: 0 0 28px;
}

.login-card form {
  display: block;
}

.login-card label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 18px 0 8px;
}

.login-card label:first-of-type {
  margin-top: 0;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 15px;
  font-size: 16px;
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  padding: 14px 48px 14px 46px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #fbfdfe;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.14);
}

.toggle-pass {
  position: absolute;
  right: 8px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
}

.toggle-pass:hover {
  background: var(--brand-soft);
}

.login-submit {
  width: 100%;
  margin-top: 26px;
  padding: 15px 20px;
  border: none;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(14, 116, 144, 0.34);
}

.login-error {
  display: none;
  margin-top: 16px;
  background: var(--danger-bg);
  border: 1px solid #fecaca;
  color: var(--danger);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.login-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}

.login-foot a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.login-foot a:hover {
  text-decoration: underline;
}

.login-note {
  position: relative;
  z-index: 2;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  text-align: center;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 820px) {
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .login-side {
    display: none;
  }

  .login-card {
    padding: 34px 26px;
  }
}

@media (max-width: 480px) {
  .login-page {
    padding: 84px 14px 28px;
    justify-content: flex-start;
  }

  .login-topbar {
    padding: 14px 5%;
  }

  .login-topbar .nx-logo small {
    display: none;
  }

  .login-card {
    padding: 28px 20px;
  }

  .login-card h1 {
    font-size: 24px;
  }
}
