/*
 * Sign in pages: everything that uses the "login" template
 * (sign in, email-link sign in, forgot password, new password, activate, rate limit).
 * Needs tokens.css and base.css.
 */
:root { --panel-a: #0f1b2d; --panel-b: #17407a; }

html, body.asc.login { height: 100%; }
.si-shell { min-height: 100%; display: grid; grid-template-columns: minmax(340px, 44%) 1fr; }

/* Brand panel (always dark, so it uses fixed colours and the white logo) */
.si-panel { background: radial-gradient(900px 500px at 10% 0%, #2a6fd6 0%, rgba(42, 111, 214, 0) 60%), radial-gradient(700px 500px at 100% 100%, #1b8f6a 0%, rgba(27, 143, 106, 0) 55%), linear-gradient(160deg, var(--panel-a), var(--panel-b)); color: #fff; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.si-panel img { width: 190px; height: auto; display: block; }
.si-panel h2 { font-size: 30px; line-height: 1.2; font-weight: 600; margin: 0 0 14px; max-width: 420px; }
.si-panel p { margin: 0; color: rgba(255, 255, 255, .82); max-width: 420px; }
.si-panel small { color: rgba(255, 255, 255, .6); font-size: 12.5px; }

/* Form side */
.si-main { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.si-box { width: 100%; max-width: 400px; }
.si-logo { display: none; margin-bottom: 28px; }
.si-logo img { width: 150px; height: auto; }
.si-foot { display: none; margin: 28px 0 0; text-align: center; color: var(--muted); font-size: 12.5px; }
.si-alt { margin: 16px 0 8px; text-align: center; font-size: 14px; }
.si-rc { margin: 16px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.si-rc a { color: var(--muted); text-decoration: underline; }
.a-btn svg { flex: none; }

/* Google's floating badge is hidden; the required notice is shown under the form (.si-rc) */
.grecaptcha-badge { visibility: hidden; }
/* The loading veil added by jquery.blockUI is white in login.js; follow the theme instead */
body.asc .blockUI.blockOverlay { background-color: var(--surface) !important; border-radius: 10px; }

/* Phones and narrow windows: no brand panel, small logo and the copyright with the form */
@media (max-width: 860px) {
  .si-shell { grid-template-columns: 1fr; }
  .si-panel { display: none; }
  .si-logo { display: block; }
  .si-foot { display: block; }
}

/* Sign in: the email shown on the password step */
.si-who { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 14px; margin: 14px 0 16px; background: var(--surface); font-size: 14px; }
.si-who-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-btn[aria-busy="true"] { opacity: .8; cursor: progress; }
