/* Scoped presentation only. Frappe owns forms, validation, login and reset. */
body.aksell-auth { color-scheme: dark; background: #111318; color: #edf0f5; min-height: 100dvh; --text-color: #edf0f5; --text-muted: #a8b0bd; --heading-color: #edf0f5; --control-bg: #20242c; --border-color: #343b48; --card-bg: #191d24; }
.aksell-auth main.container { max-width: 480px; padding: 36px 20px; }
.aksell-auth .page-card-head { margin: 24px auto; }
.aksell-auth .page-card-head h4 { color: #edf0f5; font-size: 24px; letter-spacing: -.03em; margin-top: 20px; }
.aksell-auth .app-logo { width: 48px; height: 48px; border-radius: 14px; }
.aksell-auth .page-card { background: #191d24; border: 1px solid #343b48; border-radius: 18px; box-shadow: 0 12px 40px #0003; padding: 28px; max-width: 440px; }
.aksell-auth .page-card .form-control { background: #20242c; border: 1px solid #414959; border-radius: 9px; min-height: 44px; color: #edf0f5; font-size: 16px; }
.aksell-auth .form-control::placeholder { color: #929cad; opacity: 1; }
.aksell-auth .form-group { margin-bottom: 20px; }
.aksell-auth .form-label.sr-only { position: static; width: auto; height: auto; clip: auto; white-space: normal; margin-bottom: 8px; color: #c5cbd5; }
.aksell-auth .page-card .btn { min-height: 44px; border-radius: 9px; font-weight: 600; font-size: 14px; }
.aksell-auth .page-card .btn-primary { background: #354b66; border: 1px solid #59738d; color: #fff; }
.aksell-auth .page-card .btn-primary:hover { background: #405b7a; }
.aksell-auth .page-card .btn-default { background: #252b34; color: #edf0f5; border: 1px solid #414959; }
.aksell-auth a, .aksell-auth .text-muted, .aksell-auth .toggle-password { color: #b5c6da !important; }
.aksell-auth :is(input, button, a):focus-visible { outline: 2px solid #abc8e8; outline-offset: 3px; }
.aksell-auth .field-icon { color: #a8b0bd; }
.aksell-auth .login-divider { margin: 20px 0; }
.aksell-auth .indicator.red { color: #ffb5b5; }
@media (max-width: 480px) { .aksell-auth main.container { padding: 16px; } .aksell-auth .page-card { padding: 22px 18px; } .aksell-auth .page-card-head { margin: 24px auto; } }
@media (prefers-reduced-motion: reduce) { .aksell-auth * { transition: none !important; } }

/* Native login option selectors are more specific than Bootstrap defaults. */
.aksell-auth .page-card .btn.btn-login-option, .aksell-auth .page-card .btn.btn-default { background: #252b34 !important; color: #edf0f5 !important; border: 1px solid #414959 !important; }
.aksell-auth .page-card input.form-control { border: 1px solid #414959 !important; }
.aksell-auth .page-card .field-icon { color: #a8b0bd !important; }

/* Password setup: accessible inline validation and explicit success state. */
.aksell-password-page { position: relative; }
.aksell-auth-intro { max-width: 390px; margin: 8px auto 0; color: #a8b0bd; font-size: 14px; line-height: 1.55; }
.aksell-password-banner { position: sticky; top: 14px; z-index: 20; display: grid; gap: 2px; margin: 0 auto 18px; max-width: 440px; border: 1px solid #3c8b67; border-radius: 12px; background: #153c2b; color: #e5fff1; padding: 14px 16px; box-shadow: 0 14px 38px #0005; }
.aksell-password-banner[hidden] { display: none; }
.aksell-password-banner span { color: #bde5ce; font-size: 13px; }
.aksell-password-page .form-label { display: block; margin-bottom: 8px; color: #d6dae2; font-size: 14px; font-weight: 600; }
.aksell-field-help, .aksell-field-message, .aksell-submit-status { margin: 7px 0 0; min-height: 18px; color: #9fa8b7; font-size: 12px; line-height: 1.45; }
.aksell-field-message.is-error { color: #ffb7b7; }
.aksell-field-message.is-success { color: #9ee0bd; }
.aksell-form-message { margin-bottom: 18px; border: 1px solid #7d3c43; border-radius: 9px; background: #3e2025; color: #ffd2d2; padding: 11px 12px; font-size: 13px; line-height: 1.5; }
.aksell-form-message[hidden] { display: none; }
.aksell-password-page .btn-primary:disabled { background: #29313d; border-color: #3d4654; color: #7f8998; cursor: not-allowed; opacity: 1; }
.aksell-submit-spinner { width: 14px; height: 14px; margin-left: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 999px; vertical-align: -2px; animation: aksell-spin .7s linear infinite; }
@keyframes aksell-spin { to { transform: rotate(360deg); } }
