.login-page {
    --surface: #101010;
    --input: #1c1c1c;
    --text: #f5f5f5;
    --muted: #b8b8b8;
    --border: #767676;
    --error: #ffb4ab;
    margin: 0;
    background: var(--surface);
    color: var(--text);
    color-scheme: dark;
    font: 400 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
.login-page *, .login-page *::before, .login-page *::after { box-sizing: border-box; }
.login-page [hidden] { display: none !important; }
.login-page a { color: inherit; text-underline-offset: 4px; }
.login-page button, .login-page input { font: inherit; }
.login-page button, .login-page a, .password-toggle { touch-action: manipulation; }
.login-page button { cursor: pointer; }
.login-page :focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.login-header { display: flex; align-items: center; gap: 20px; padding: 24px 5vw; }
.login-header a { display: inline-flex; }
.login-header img { width: 140px; height: 60px; object-fit: contain; }
.brand-product {
    border-left: 1px solid var(--border);
    padding-left: 20px;
    color: #ffffff;
    font-size: xx-large;
    font-family: 'Bebas Neue', 'Barlow', sans-serif;
    font-weight: 400;
    letter-spacing: .025em;
}
.login-layout { display: grid; grid-template-columns: 1fr 1fr; flex: 1; }
.login-story { display: flex; align-items: flex-end; min-width: 0; padding: 64px 5vw; }
.story-copy { max-width: 560px; }
.story-copy h2 { font-size: clamp(36px, 4.2vw, 64px); line-height: 1.05; letter-spacing: -.04em; margin: 0 0 24px; text-wrap: balance; }
.story-copy > p:last-child { color: #ddd; margin: 0; }
.login-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 6vw; min-width: 0; }
.login-context { width: 100%; max-width: 400px; }
.login-card { width: 100%; max-width: 400px; }
.login-card h1 { font-size: 32px; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 12px; }
.login-intro { color: var(--muted); margin: 0 0 32px; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-weight: 600; }
.field input { width: 100%; min-height: 52px; border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; background: var(--input); color: var(--text); }
.field input::placeholder { color: var(--muted); opacity: 1; }
.field input[aria-invalid="true"] { border: 2px solid var(--error); padding: 11px 13px; }
.field-error, .field-hint { margin: 8px 0 0; font-size: 14px; }
.field-error { color: var(--error); }
.field-hint { color: var(--muted); }
.form-error { border: 1px solid var(--error); border-radius: 6px; color: var(--error); padding: 14px 16px; margin: 0 0 24px; overflow-wrap: anywhere; }
.form-error p { margin: 0; }
.password-toggle { display: flex; align-items: center; gap: 12px; min-height: 44px; width: fit-content; margin: -4px 0 20px; cursor: pointer; }
.password-toggle input { width: 20px; height: 20px; margin: 0; accent-color: #fff; }
.primary-button { width: 100%; min-height: 52px; border: 1px solid #f5f5f5; border-radius: 6px; background: #f5f5f5; color: #101010; padding: 12px 20px; font-weight: 650 !important; }
.primary-button:hover:not(:disabled) { background: #d8d8d8; border-color: #d8d8d8; }
.login-page button:disabled { cursor: wait; opacity: .65; }
.loading-status { color: var(--muted); min-height: 24px; margin: 8px 0; font-size: 14px; }
.signup-prompt { margin: 0; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.text-button, .back-button { color: var(--text); border: 0; background: transparent; min-height: 44px; padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover, .back-button:hover, .login-footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.back-button { margin-bottom: 16px; }
.login-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 20px 5vw; color: var(--muted); font-size: 14px; }
.login-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.login-footer > span { display: inline-flex; align-items: center; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 12px; background: #101010; z-index: 2; }
.skip-link:focus { top: 16px; }
@media (min-width: 901px) {
    .login-story { background: linear-gradient(180deg, #10101022, #101010ee), url('../../assets/img/home/clandestino_background.webp') center 40% / cover; }
}
@media (max-width: 900px) {
    .login-header { padding: 20px 24px; }
    .login-layout { display: block; }
    .login-story { display: none; }
    .login-panel { padding: 32px 24px 16px; }
    .login-footer { padding: 24px; justify-content: center; text-align: center; }
}
@media (max-width: 360px) {
    .login-header { padding: 16px 20px; }
    .login-panel { padding: 24px 20px 16px; }
    .login-card h1 { font-size: 28px; }
}
