:root { --accent: #D2EF00; --accent-hover: #BED800; --ink: #202218; --muted: #636757; --surface: #F7F8F2; --line: #E2E5D8; --focus: #596600; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--surface); font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
.login-page { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 18px; font-weight: 650; text-decoration: none; color: var(--ink); margin-bottom: 32px; }
.brand-icon { width: 32px; height: 32px; flex-shrink: 0; }
.login-card { width: 100%; max-width: 400px; background: #fff; padding: 32px; border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 8px 32px #20221806; }
/* Center the sign-in card itself, independently of the brand above it. */
.login-page--sign-in { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto 1fr; justify-items: center; }
.login-page--sign-in > .brand { grid-row: 1; align-self: end; }
.login-page--sign-in > .login-card { grid-row: 2; }
h1 { font-size: 28px; letter-spacing: -.6px; margin: 0 0 8px; line-height: 1.2; }
.intro { font-size: 14px; color: var(--muted); margin: 0 0 28px; line-height: 1.5; }
form { display: flex; flex-direction: column; }
label { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
input { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; height: 48px; width: 100%; padding: 0 14px; }
input::placeholder { color: var(--muted); }
#username { margin-bottom: 20px; }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-field button { position: absolute; right: 3px; top: 3px; height: 42px; width: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; }
.submit { height: 48px; margin-top: 24px; padding: 0 16px; font: inherit; font-size: 16px; font-weight: 600; background: var(--accent); border: 0; border-radius: 10px; color: var(--ink); cursor: pointer; }
.submit:hover { background: var(--accent-hover); }
.submit:disabled { opacity: .65; cursor: wait; }
.signup { font-size: 14px; color: var(--muted); text-align: center; margin: 24px 0 0; }
.signup a { color: var(--focus); text-decoration: none; font-weight: 500; }
.signup a:hover { text-decoration: underline; }
.error { font-size: 14px; line-height: 1.5; color: #a51d2d; margin: 16px 0 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Use the field's own border instead of an additional browser focus ring. */
#kc-form-login input:focus { outline: none; box-shadow: none; border-color: var(--focus); }
@media (max-width: 420px) { .login-page { padding: 28px 18px; } .login-card { padding: 24px; } .brand { margin-bottom: 24px; } }
@media (max-height: 560px) { .login-page { justify-content: flex-start; padding-block: 24px; } .brand { margin-bottom: 20px; } }
@media (max-height: 560px) { .login-page--sign-in { display: flex; } }
#kc-update-profile-form input:not([type="hidden"]) { margin-bottom: 20px; }
.profile-avatar { display: flex; flex-direction: column; align-items: center; margin: 0 0 24px; text-align: center; }
.profile-avatar-picker { display: grid; place-items: center; width: 112px; height: 112px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); cursor: pointer; }
.profile-avatar-picker:hover { border-color: var(--focus); }
.profile-avatar-picker img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.profile-avatar-actions button { min-height: 48px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--focus); font: inherit; font-size: 14px; cursor: pointer; }
.profile-avatar-actions button:hover { background: var(--surface); }
.profile-avatar button:disabled { opacity: .65; cursor: wait; }
.profile-hint { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
#kc-update-profile-form .profile-field-error { margin: -12px 0 20px; }
#kc-update-profile-form [aria-invalid="true"] { border-color: #a51d2d; }
.profile-avatar [hidden] { display: none; }
.phone-status { font-size: 14px; color: var(--muted); line-height: 1.5; margin: -4px 0 16px; }
.phone-status.is-error { color: #a51d2d; }
.password-step { display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(-8px); transition: grid-template-rows 240ms ease, opacity 240ms ease, transform 240ms ease; }
.password-step[hidden], .phone-status[hidden] { display: none; }
.password-step.is-visible { grid-template-rows: 1fr; opacity: 1; transform: translateY(0); }
.password-step-content { min-height: 0; overflow: hidden; }
.password-step-content > label { display: block; }
@media (prefers-reduced-motion: reduce) { .password-step { transition: none; transform: none; } }
