/* ==========================================================================
   Makwana Corporate — Auth screens (login, forgot password)
   Prefix: au-   ·   Split screen on desktop, single column on mobile
   ========================================================================== */
.au-body { background: var(--white); }
.au { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

/* ---------- Brand panel ---------- */
.au-brand {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-8);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(34, 167, 122, 0.35), transparent 65%),
    radial-gradient(500px 360px at 0% 100%, rgba(20, 122, 96, 0.45), transparent 70%),
    var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  overflow: hidden;
  isolation: isolate;
}
.au-brand__grid {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000, transparent 80%);
}
.au-brand__chart { position: absolute; left: 0; right: 0; bottom: 18%; width: 100%; height: 45%; z-index: -1; }
.au-brand__chart path { fill: none; stroke: rgba(155, 230, 201, 0.35); stroke-width: 2; vector-effect: non-scaling-stroke; }
.au-brand__chart .au-area { fill: rgba(34, 167, 122, 0.12); stroke: none; }
.au-logo img { height: 46px; width: auto; }
.au-brand__mid { max-width: 440px; }
.au-brand__eyebrow { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: #9BE6C9; }
.au-brand__title { margin-top: var(--space-3); font-family: var(--font-heading); font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.75rem); font-weight: var(--fw-heavy); line-height: 1.1; letter-spacing: -0.03em; color: var(--white); }
.au-brand__text { margin-top: var(--space-4); font-size: var(--fs-lead); }
.au-brand__card { width: min(300px, 70%); margin-top: var(--space-8); rotate: -6deg; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.35)); }
.au-brand__card .svc-card { box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 0 1px rgba(255,255,255,0.12); }
.au-brand__safety { display: flex; gap: 12px; align-items: flex-start; max-width: 440px; padding: var(--space-4) var(--space-5); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-md); font-size: var(--fs-small); }
.au-brand__safety .icon { flex-shrink: 0; color: #9BE6C9; margin-top: 2px; }

/* Steps list (forgot password brand panel) */
.au-brand__steps { display: grid; gap: var(--space-4); margin-top: var(--space-8); list-style: none; padding: 0; }
.au-brand__steps li { display: flex; align-items: center; gap: var(--space-3); color: rgba(255, 255, 255, 0.7); }
.au-brand__steps span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.3); font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: var(--fs-small); }

/* ---------- Form panel ---------- */
.au-panel { display: flex; flex-direction: column; padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); background: var(--light-bg); }
.au-panel__top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); font-size: var(--fs-small); }
.au-panel__top a { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-semibold); color: var(--muted); }
.au-panel__top a:hover { color: var(--primary); }
.au-panel__top .icon { width: 16px; height: 16px; }
.au-panel__main { flex: 1; display: grid; place-items: center; padding-block: var(--space-8); }

.au-card {
  width: 100%; max-width: 460px;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.au-card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--space-5); border-radius: var(--radius-md); background: var(--mint); color: var(--primary); }
.au-card__icon .icon { width: 24px; height: 24px; }
.au-card h1, .au-card .h1 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2.1rem); letter-spacing: -0.025em; }
.au-card__sub { margin-top: var(--space-2); font-size: 0.97rem; }
.au-card__sub b { color: var(--ink); white-space: nowrap; }
.au-form { margin-top: var(--space-6); display: grid; gap: var(--space-5); }
.au-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.au-label-row a { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--primary); }
.au-label-row a:hover { text-decoration: underline; text-underline-offset: 2px; }
.au-pass .input { padding-right: 4.75rem; }
.au-caps { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--warning); }
.au-caps .icon { width: 14px; height: 14px; }
.au-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.au-row .choice { font-size: var(--fs-small); }
.au-divider { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-7) 0 var(--space-5); font-size: var(--fs-xs); color: var(--subtle); }
.au-divider::before, .au-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.au-alt { display: grid; gap: var(--space-3); }
.au-alt p { font-size: var(--fs-small); text-align: center; }
.au-alt__links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.au-alt__links .btn { white-space: normal; text-align: center; }
.au-legal { margin-top: var(--space-6); max-width: 460px; text-align: center; font-size: var(--fs-xs); color: var(--subtle); align-self: center; }
.au-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* Notices */
.au-notice { display: flex; gap: 10px; align-items: flex-start; margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--radius-sm); font-size: var(--fs-small); border: 1px solid; }
.au-notice .icon { flex-shrink: 0; margin-top: 1px; }
.au-notice--info { background: var(--info-bg); border-color: #C9DDEA; color: #1F4E6B; }
.au-notice--error { background: var(--error-bg); border-color: #F3C9C1; color: #8E2E1F; }
.au-notice--demo { background: var(--warning-bg); border-color: #EBD3A2; color: #7A5214; }
.au-notice a { color: inherit; font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 2px; }
.au-notice:focus { outline: none; box-shadow: var(--ring); }

/* ---------- Stepper (forgot password) ---------- */
.au-stepper { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-6); list-style: none; padding: 0; }
.au-stepper li { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--subtle); }
.au-stepper li:not(:last-child)::after { content: ""; width: 28px; height: 2px; margin-left: var(--space-2); border-radius: 2px; background: var(--line); }
.au-stepper span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); font-family: var(--font-heading); }
.au-stepper li.is-current { color: var(--ink); }
.au-stepper li.is-current span { border-color: var(--primary); background: var(--primary); color: var(--white); }
.au-stepper li.is-done span { border-color: var(--accent); background: var(--accent); color: var(--white); }
.au-stepper li.is-done::after { background: var(--accent); }
.au-step:focus { outline: none; }
.au-step:not([hidden]) { animation: au-in 0.35s var(--ease-out); }
@keyframes au-in { from { opacity: 0; transform: translateY(8px); } }

/* OTP */
.au-otp { display: grid; grid-template-columns: repeat(var(--otp-n, 6), minmax(0, 1fr)); gap: clamp(6px, 1.5vw, 12px); }
.au-otp input {
  width: 100%; aspect-ratio: 1 / 1.15; min-height: 52px;
  padding: 0;
  text-align: center;
  font-family: var(--font-heading); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); font-weight: var(--fw-heavy); color: var(--ink);
  background: var(--light-bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  caret-color: var(--accent);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast);
}
.au-otp input:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: var(--ring); }
.au-otp input.is-filled { background: var(--white); border-color: var(--primary-200); }
.au-otp.is-invalid input { border-color: var(--error); animation: mk-shake 0.3s var(--ease-out); }
.au-otp-error { min-height: 1.4em; margin-top: var(--space-3); font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--error); }
.au-resend { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); font-size: var(--fs-small); color: var(--muted); }
.au-linkbtn { font-weight: var(--fw-semibold); color: var(--primary); }
.au-linkbtn:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 2px; }
.au-linkbtn:disabled { color: var(--subtle); cursor: default; }
.au-timer { font-variant-numeric: tabular-nums; }

.au-success { text-align: center; }
.au-success .au-card__icon { margin-inline: auto; width: 68px; height: 68px; border-radius: 50%; color: var(--success); }
.au-success .au-card__icon .icon { width: 32px; height: 32px; }
.au-success__actions { display: grid; gap: var(--space-3); margin-top: var(--space-6); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .au { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }
  .au-brand__card { display: none; }
}
@media (max-width: 860px) {
  .au { grid-template-columns: 1fr; }
  .au-brand { gap: var(--space-4); padding: var(--space-5) var(--gutter); }
  .au-brand__mid, .au-brand__safety, .au-brand__chart, .au-brand__steps { display: none; }
  .au-logo img { height: 38px; }
  .au-panel { background: var(--white); padding-inline: var(--gutter); }
  .au-panel__main { place-items: start center; padding-block: var(--space-6) var(--space-8); }
  .au-card { border: 0; box-shadow: none; padding: 0; max-width: 520px; }
}
@media (max-width: 400px) {
  .au-alt__links { grid-template-columns: 1fr; }
  .au-stepper li:not(:last-child)::after { width: 14px; }
}
.au-card > [data-demo] { margin: 0 0 var(--space-5); }
