/* login.css — TrueCare sign-in page */
:root {
  --bg: #F0F4F8;
  --card: #fff;
  --text: #0F172A;
  --sub: #475569;
  --muted: #94A3B8;
  --border: #E2E8F0;
  --blue: #2563EB;
  --blue2: #1D4ED8;
  --radius: 14px;
  --shadow-card: 0 10px 30px rgba(15,23,42,.1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body.auth {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

/* ── Centered wrapper ── */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

/* ── Two-panel card ── */
.auth-card {
  width: min(900px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Decorative left panel ── */
.auth-panel {
  background: linear-gradient(145deg, #1E3A5F 0%, #1D4ED8 60%, #2563EB 100%);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.auth-panel::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.auth-panel::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.auth-panel__inner { position: relative; z-index: 1; width: 100%; }

.brand--panel {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  margin-bottom: 32px;
}
.brand--panel img {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  object-fit: contain;
  background: rgba(255,255,255,.1);
}
.auth-panel__inner h2 {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  line-height: 1.2;
  margin: 0 0 14px;
}
.auth-panel__inner > p {
  color: rgba(255,255,255,.75);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  margin: 0 0 28px;
}
.panel__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel__features li {
  color: rgba(255,255,255,.9);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel__features li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.2);
}

/* ── Form side ── */
.auth-left {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mobile-only brand (hidden on desktop) */
.brand--form {
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 24px;
}
.brand--form img {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: contain;
}

.title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.sub {
  margin: 0 0 22px;
  color: var(--sub);
  font-size: 15px;
  font-weight: 500;
}

/* ── Form ── */
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--sub);
  font-weight: 700;
}
.field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  outline: none;
  background: #FAFBFC;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
  background: #fff;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.check input { accent-color: var(--blue); }
.link {
  font-size: 14px;
  color: var(--blue);
  font-weight: 700;
}
.link:hover { color: var(--blue2); text-decoration: underline; }
/* ── Password eye toggle ── */
.field--pw .pw-wrap { position: relative; }
.field--pw .pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 5px;
  line-height: 0;
  border-radius: 8px;
  transition: color .2s, background .2s, transform .2s;
}
.pw-toggle:hover {
  color: var(--blue);
  background: rgba(37,99,235,.08);
  transform: translateY(-50%) scale(1.15);
}
.pw-toggle:active { transform: translateY(-50%) scale(0.92); }

/* SVG parts */
.eye-svg { display: block; overflow: visible; }
.eye-lid, .eye-lash, .eye-pupil {
  transition: stroke-dashoffset .35s cubic-bezier(.4,0,.2,1),
              opacity .25s ease,
              r .3s cubic-bezier(.34,1.56,.64,1);
}

/* Lash — the diagonal strike-through line */
.eye-lash {
  stroke-dasharray: 30;
  stroke-dashoffset: 0;         /* visible = password hidden */
  transform-origin: center;
}

/* Pupil grows when revealed */
.eye-pupil { r: 3; }

/* ── revealed state (added by JS) ── */
.pw-toggle.is-visible { color: var(--blue); }
.pw-toggle.is-visible .eye-lash {
  stroke-dashoffset: 30;        /* hides the lash */
}
.pw-toggle.is-visible .eye-pupil { r: 4; }

.error {
  margin: 2px 0 0;
  min-height: 18px;
  font-size: 13px;
  font-weight: 700;
  color: #DC2626;
}

/* ── Button ── */
.btn {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-family: var(--font);
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  transition: transform .08s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blue);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.btn-primary:hover {
  background: var(--blue2);
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
}

/* ── Back link ── */
.back {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.back:hover { color: var(--sub); }

/* ── Responsive ── */
@media (max-width: 680px) {
  .auth-card {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
  .auth-panel { display: none; }
  .brand--form { display: flex; }
  .auth-left { padding: 32px 28px; }
}
