﻿/* Sign-in page and the anonymous error page (Views/Shared/_LoginLayout.cshtml).
   Shared by every tenant before sign-in, so it carries the VedaArogya look (rebrand 2026-11-22; the layout is still the AtashiTech design system's) and is
   always light: a pale blue ground with soft blue glows, a white card with a 4px blue top edge, the logo, a full-width
   blue button. Colours from vedaarogya.com (navy #0a2540, blue #0a6cc2, aqua #00a3a6). The --at-copper* names stay. */

:root {
  color-scheme: light;
  --at-page: #F4F9FD;
  --at-line: #D6E4F0;
  --at-ink: #0A2540;
  --at-body: #3D5266;
  --at-muted: #5B6F82;
  --at-heading: #0A2540;
  --at-copper: #0A6CC2;
  --at-copper-dark: #08559A;
  --at-button: #0A6CC2;
  --at-button-hover: #08559A;
  --at-danger: #A12525;
}

html, body { min-height: 100%; }

.at-auth {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: .875rem;
  color: var(--at-ink);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(10, 108, 194, .14), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(0, 163, 166, .12), transparent 60%),
    var(--at-page);
}
/* The line along the top: navy → blue → aqua. */
.at-auth::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #0A2540, #0A6CC2, #00A3A6);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: .5rem .75rem;
  background: #fff;
  color: var(--at-copper-dark);
  border-radius: 6px;
}
.skip-link:focus { left: 16px; }

.at-auth-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 16px;
}

.at-auth-card {
  width: 100%;
  max-width: 440px;
  padding: 2.25rem 2rem 2rem;
  background: #fff;
  border: 1px solid var(--at-line);
  border-top: 4px solid var(--at-copper);
  border-radius: 1rem;
  box-shadow: 0 18px 48px rgba(58, 45, 34, .12);
}
.at-auth-logo { height: 46px; max-width: 100%; }
.at-auth-tagline { margin: .9rem 0 0; color: var(--at-body); font-size: .85rem; }
.at-auth-title { margin: 1.5rem 0 .25rem; font-size: 1.4rem; font-weight: 700; text-align: center; color: var(--at-heading); }
.at-auth-subtitle { margin: 0 0 1.25rem; text-align: center; color: var(--at-muted); }
.at-auth-footer { margin: 1.5rem 0 0; color: var(--at-muted); font-size: .8rem; text-align: center; }

.at-auth .form-label { color: var(--at-body); font-weight: 600; font-size: .8125rem; margin-bottom: .35rem; }
.at-auth .input-group-text { background: var(--at-page); border-color: var(--at-line); color: var(--at-muted); }
.at-auth .form-control { border-color: var(--at-line); color: var(--at-ink); font-size: .9rem; padding: .55rem .75rem; }
.at-auth .form-control::placeholder { color: #7F93A6; }
.at-auth .form-control:focus { border-color: var(--at-copper); box-shadow: 0 0 0 3px rgba(10, 108, 194, .2); }
.at-auth .form-control.is-invalid { border-color: var(--at-danger); }
.at-auth .invalid-feedback { color: var(--at-danger); font-size: .78rem; min-height: 1rem; }
.at-auth .alert-danger { color: var(--at-danger); background: rgba(161, 37, 37, .08); border-color: rgba(161, 37, 37, .25); border-radius: 6px; }

.at-auth-eye {
  border: 1px solid var(--at-line);
  border-left: 0;
  background: #fff;
  color: var(--at-muted);
}
.at-auth-eye:hover, .at-auth-eye:focus-visible { color: var(--at-copper-dark); background: var(--at-page); }

.at-auth-btn {
  padding: .65rem 1rem;
  border: 1px solid var(--at-button);
  border-radius: 6px;
  background: var(--at-button);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
}
.at-auth-btn:hover, .at-auth-btn:focus-visible, .at-auth-btn:active { background: var(--at-button-hover) !important; border-color: var(--at-button-hover) !important; color: #fff !important; }
.at-auth-btn:focus-visible { outline: 3px solid var(--at-copper); outline-offset: 2px; }
.at-auth-btn:disabled { background: var(--at-button); border-color: var(--at-button); color: #fff; opacity: .75; }

.at-auth a:not(.btn) { color: var(--at-copper-dark); }
.at-auth-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.at-auth-icon.is-danger { color: var(--at-danger); }

@media (max-width: 420px) {
  .at-auth-card { padding: 1.75rem 1.25rem 1.5rem; }
}

/* ── NextPrescription: sign-up, verify, forgot password, invitation ── */
.at-auth-card-wide { max-width: 560px; }
.at-auth-alt { margin: 1rem 0 0; text-align: center; color: var(--at-muted); }
.at-auth-alt + .at-auth-alt { margin-top: .4rem; }
.at-auth a:not(.btn), .at-auth .btn-link { color: var(--at-copper-dark); font-weight: 600; text-decoration: none; }
.at-auth a:not(.btn):hover, .at-auth .btn-link:hover { text-decoration: underline; }
.at-auth .form-select { border-color: var(--at-line); color: var(--at-ink); font-size: .9rem; padding-top: .55rem; padding-bottom: .55rem; }
.at-auth .form-select:focus { border-color: var(--at-copper); box-shadow: 0 0 0 3px rgba(10, 108, 194, .2); }
.at-auth .form-text { color: var(--at-muted); font-size: .78rem; }
.at-auth .form-check-input:checked { background-color: var(--at-button); border-color: var(--at-button); }
.at-auth .form-check-input:focus { border-color: var(--at-copper); box-shadow: 0 0 0 3px rgba(10, 108, 194, .2); }
.at-auth .form-check-label { color: var(--at-body); }
.at-auth .alert-success { color: #1A6B34; background: rgba(30, 122, 60, .08); border-color: rgba(30, 122, 60, .25); border-radius: 6px; }
/* A partner's sign-up or invitation shows its own logo (never ours), at the wordmark's size. */
.at-auth-partner-logo { max-height: 56px; max-width: 220px; object-fit: contain; }
.at-auth-icon-brand { color: var(--at-copper-dark); }
.bn-code { font-size: 1.6rem; letter-spacing: .5rem; text-align: center; }
/* Honeypot field for bots: off-screen, never focusable by people. */
.bn-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
