.auth-wrap { display: flex; justify-content: center; padding-block: var(--s6, 2.5rem); }
.auth-card { width: 100%; max-width: 400px; padding: var(--sp-8, 32px); border-radius: var(--radius); }   /* one centred card, 400 px (440 on a tablet), 32 px padding (DR-18); fields and buttons at the device's own size */
.auth-card .btn-lg { min-height: var(--btn-h, 44px); font-size: var(--fs-body, 1rem); }
.auth-card .btn { white-space: nowrap; }
@media (min-width: 601px) and (max-width: 1024px) { .auth-card { max-width: 440px; } }
.auth-hint, .auth-links { margin-top: var(--s3, .75rem); }
.auth-or { display: flex; align-items: center; gap: .75rem; color: var(--ink-muted); font-size: .85rem; margin: var(--s4, 1rem) 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.check { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; margin-bottom: var(--s3, .75rem); }
/* Continue with Google: Google's published button (light: white, grey outline, #1f1f1f text; dark: #131314, #8e918f outline, #e3e3e3 text). */
.gsi-btn { display: flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 12px;
  background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: 4px; font: 500 14px/20px "Roboto", Arial, sans-serif; text-decoration: none; }
.gsi-btn:hover { background: #f8f9fa; text-decoration: none; }
.gsi-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gsi-g { flex: none; }
:root[data-theme="dark"] .gsi-btn { background: #131314; color: #e3e3e3; border-color: #8e918f; }
:root[data-theme="dark"] .gsi-btn:hover { background: #1f2021; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gsi-btn { background: #131314; color: #e3e3e3; border-color: #8e918f; }
  :root:not([data-theme="light"]) .gsi-btn:hover { background: #1f2021; }
}

/* The answer to a try (wrong password, a lock, a weak password) is the first thing in the form: red text on a pale panel, never below the fold. */
.auth-alert { padding: var(--s3) var(--s4); margin: 0 0 var(--s4); border: 1px solid var(--burgundy-text); border-left-width: 4px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .95rem; scroll-margin-block: var(--s6); }
.auth-alert[hidden] { display: none; }
.auth-alert:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.auth-door { margin-top: var(--s2); }
/* The optional place (state, city, "Open to anywhere in India") on the candidate sign-up. */
.auth-place { border: 0; padding: 0; margin: 0 0 var(--s3); min-width: 0; }
.auth-place legend { font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: var(--s2); }
.auth-place .form-row { margin-bottom: 0; }
.auth-place-hint { margin: 0; font-size: .85rem; color: var(--ink-muted); }
.auth-card.is-done [data-agree-block], .auth-card.is-done .gsi-btn, .auth-card.is-done .auth-or, .auth-card.is-done form > :not([data-form-ok]) { display: none; }
.auth-card.is-done [data-form-ok] { margin-top: 0; }
[data-form-ok]:focus { outline: 3px solid var(--focus); outline-offset: 2px; }

/* A phone (390 x 780): the heading, the fields and the main button come first; the button stays above the cookie bar while a long form scrolls. */
@media (max-width: 600px) {
  /* the phone version: no card chrome, the form is the page */
  .auth-card { border: 0; box-shadow: none; background: transparent; }
  .auth-hero { padding-block: var(--s3); }
  .auth-hero .breadcrumb { display: none; }
  .auth-hero h1 { font-size: 1.35rem; margin-bottom: 0; }
  .auth-hero .lead { display: none; }
  .auth-wrap { padding-block: var(--s3); }
  .auth-card { padding: 0; }
  .auth-card > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }      /* the page's h1 already says it */
  .auth-card .field { margin-bottom: var(--s3); gap: var(--s1); }
  .auth-card .form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .auth-card .auth-or { margin: var(--s3) 0; }
  .auth-card .check { margin-bottom: var(--s2); }
  .auth-actions { position: sticky; bottom: var(--cookie-h, 0px); z-index: 5; background: var(--surface); margin-inline: calc(var(--s4) * -1); padding: var(--s2) var(--s4); box-shadow: 0 -6px 8px -6px rgb(0 0 0 / .15); }
  html.cookie-away .auth-actions { bottom: 0; }
}
.auth-doors { display: grid; gap: var(--s2); margin: var(--s3) 0 0; }
.auth-doors [hidden] { display: none; }
.auth-card [hidden] { display: none !important; }      /* .btn is a flex box: without this a hidden button stays on the page */
