/* ============================================================
   Entry screens: portal home (index.html) + sign in (login.html)

   These two pages sit OUTSIDE the app shell — no topbar, sidebar or rail —
   so they only borrow the design tokens from app.css. Mobile-first: the
   single-column stack is the base, side-by-side is the >=768px enhancement.
   ============================================================ */

.portal{
  min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;
  padding:24px 20px 20px;gap:28px;background:var(--lavender-150);
}

/* ---- Header: logo + wordmark, with the help toggle on the right ---- */
.portal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;}
.portal-brand{display:flex;align-items:center;gap:12px;text-decoration:none;}
.portal-brand .mark{width:44px;height:44px;border-radius:12px;font-size:20px;}
.portal-wordmark{font-size:24px;font-weight:700;letter-spacing:-0.03em;color:var(--ink-950);line-height:1.1;}
.portal-wordmark span{color:var(--purple-500);}
.portal-tagline{display:block;margin-top:2px;font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--slate-500);}

.help-btn{
  width:40px;height:40px;flex:0 0 40px;border:0;border-radius:var(--radius-full);cursor:pointer;
  background:var(--purple-500);color:var(--white);font:inherit;font-size:17px;font-weight:700;
  box-shadow:0 8px 20px rgba(104,68,237,.32);
}
.help-btn:hover{background:#5a38d6;}
.help-card{
  margin-left:auto;max-width:320px;background:var(--white);border-radius:var(--radius-md);
  padding:16px 18px;box-shadow:var(--shadow-soft);border:1px solid var(--lavender-200);
}
.help-card[hidden]{display:none;}
.help-card h2{margin:0 0 6px;font-size:14px;font-weight:700;color:var(--purple-500);}
.help-card p{margin:0;font-size:13px;line-height:1.55;color:var(--slate-600);}

/* ---- The two entry seals ---- */
.portal-body{flex:1;display:flex;align-items:center;justify-content:center;}
.seal-row{
  display:grid;grid-template-columns:1fr;gap:44px 40px;width:100%;max-width:900px;
  justify-items:center;
}
.seal-link{display:flex;flex-direction:column;align-items:center;gap:18px;text-decoration:none;max-width:340px;}
.seal{
  width:min(70vw, 300px);height:auto;display:block;
  transition:transform .18s ease, filter .18s ease;
}
.seal-hospital{filter:drop-shadow(0 0 34px rgba(104,68,237,.42));}
.seal-ayushman{filter:drop-shadow(0 0 34px rgba(229,72,77,.42));}
.seal-link:hover .seal,.seal-link:focus-visible .seal{transform:scale(1.035);}
.seal-link:active .seal{transform:scale(.985);}
/* A real focus ring. `drop-shadow()` takes no spread value, so a filter cannot
   draw one — use an outline on the link itself. */
.seal-link:focus-visible{outline:3px solid var(--ink-950);outline-offset:6px;border-radius:var(--radius-md);}
.seal-caption{margin:0;text-align:center;font-size:15px;line-height:1.5;color:var(--slate-600);}

.portal-foot{text-align:center;font-size:13px;color:var(--slate-500);}

@media (min-width:768px){
  .portal{padding:32px 40px 24px;}
  .seal-row{grid-template-columns:1fr 1fr;gap:48px;}
  .seal{width:min(34vw, 330px);}
  .portal-foot{text-align:left;}
}

/* ============================================================
   Sign in
   ============================================================ */
.auth{
  min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;
  padding:24px 20px;background:var(--lavender-150);
}
.auth-card{
  width:100%;max-width:420px;background:var(--white);border-radius:22px;
  padding:32px 24px;box-shadow:var(--shadow-soft);
}
.auth-brand{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:18px;}
.auth-brand .mark{width:48px;height:48px;border-radius:13px;font-size:22px;}
.auth h1{margin:0;text-align:center;font-size:26px;font-weight:700;letter-spacing:-0.03em;}
.auth-sub{margin:6px 0 24px;text-align:center;font-size:14px;color:var(--slate-500);}

.auth-field{margin-bottom:16px;}
.auth-label{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px;}
.auth-label label{font-size:14px;font-weight:600;}
.auth-label a{font-size:13px;font-weight:600;color:var(--purple-500);text-decoration:none;}
.auth-label a:hover{text-decoration:underline;}
.auth-input{position:relative;display:flex;align-items:center;}
.auth-input input{
  width:100%;height:52px;padding:0 16px;font:inherit;font-size:15px;color:var(--ink-600);
  background:var(--white);border:1px solid var(--lavender-200);border-radius:var(--radius-md);
}
.auth-input input::placeholder{color:var(--slate-300);}
.auth-input input:focus{outline:none;border-color:var(--purple-500);box-shadow:0 0 0 3px rgba(104,68,237,.16);}
.auth-input.has-toggle input{padding-right:74px;}
.auth-input select{
  width:100%;height:52px;padding:0 38px 0 14px;font:inherit;font-size:15px;color:var(--ink-600);
  background:var(--white) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236B6B80'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center/18px;
  border:1px solid var(--lavender-200);border-radius:var(--radius-md);appearance:none;cursor:pointer;
}
.auth-input select:focus{outline:none;border-color:var(--purple-500);box-shadow:0 0 0 3px rgba(104,68,237,.16);}
.req{color:var(--red-500);}

/* Sign up: phone = country code + number; state/city sit side by side. */
.phone-row{display:grid;grid-template-columns:96px 1fr;gap:10px;}
.phone-row select{
  width:100%;height:52px;padding:0 26px 0 12px;font:inherit;font-size:15px;color:var(--ink-600);
  background:var(--white) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236B6B80'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center/16px;
  border:1px solid var(--lavender-200);border-radius:var(--radius-md);appearance:none;cursor:pointer;
}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.field-row .auth-field{margin-bottom:16px;}
.pw-toggle{
  position:absolute;right:14px;border:0;background:none;font:inherit;font-size:14px;
  font-weight:600;color:var(--slate-500);cursor:pointer;padding:6px;
}
.pw-toggle:hover{color:var(--ink-600);}

/* The entry screens use the brand purple for the primary action, unlike the
   in-app .btn-primary (ink). */
.auth .btn{width:100%;justify-content:center;height:52px;font-size:15px;}
.auth .btn-primary{background:var(--purple-500);}
.auth .btn-primary:hover{background:#5a38d6;}
.btn-outline{
  background:var(--white);color:var(--ink-600);border:1.5px solid var(--ink-950);
}
.btn-outline:hover{background:var(--lavender-50);}
.auth-stack{display:grid;gap:12px;margin-top:20px;}

.auth-or{display:flex;align-items:center;gap:14px;margin:22px 0 16px;color:var(--slate-500);font-size:13px;}
.auth-or::before,.auth-or::after{content:"";flex:1;height:1px;background:var(--lavender-200);}

.btn-google{
  width:100%;height:52px;display:inline-flex;align-items:center;justify-content:center;gap:10px;
  background:var(--white);border:1px solid var(--lavender-200);border-radius:var(--radius-md);
  font:inherit;font-size:15px;font-weight:600;color:var(--ink-600);cursor:pointer;
}
.btn-google:hover{background:var(--lavender-50);}
.btn-google .g{color:#4285F4;font-weight:700;font-size:17px;}

.auth-foot{margin:22px 0 0;text-align:center;font-size:14px;color:var(--slate-500);}
.auth-foot a{color:var(--purple-500);font-weight:700;text-decoration:none;}
.auth-foot a:hover{text-decoration:underline;}

.auth-back{
  display:inline-flex;align-items:center;gap:6px;margin-bottom:14px;
  color:var(--purple-500);font-size:12px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;text-decoration:none;
}

.auth-note{
  margin:16px 0 0;padding:12px 14px;border-radius:var(--radius-sm);
  background:var(--lavender-100);color:var(--slate-600);font-size:13px;line-height:1.5;
}
.auth-note[hidden]{display:none;}

@media (min-width:768px){
  .auth-card{max-width:460px;padding:36px 40px;}
}
