:root {
    color-scheme: dark;
    --background: #090c09;
    --surface: #121812;
    --border: #303c30;
    --text: #f3f8f1;
    --muted: #a9b7a7;
    --accent: #a9ef72;
    --action: #a3ef60;
    --action-hover: #bcfb8e;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font: 1rem/1.5 Inter, "Segoe UI", sans-serif;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.23fr) minmax(19rem, 1fr);
    align-content: center;
    gap: clamp(2.5rem, 7vw, 7.5rem);
    width: min(100%, 82rem);
    min-height: 100svh;
    margin-inline: auto;
    padding: clamp(1.25rem, 4vw, 3.5rem);
}

.brand-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: min(47rem, 83svh);
    padding: clamp(1.75rem, 4vw, 3.5rem);
    overflow: hidden;
    border: 1px solid #283626;
    border-radius: 1.5rem;
    background:
        linear-gradient(180deg, #080d0826 30%, #080d0855 62%, #080d08f2 100%),
        #101710 url("../img/apex-entrada.webp") 54% 44% / cover no-repeat;
}

.brand-mark {
    width: 3rem;
    height: 3rem;
    border-radius: .7rem;
    box-shadow: 0 0 0 1px #a4ef6044;
}

.brand-message { margin-top: 4rem; }

.wordmark {
    margin: 0;
    font-size: clamp(4.1rem, 8.1vw, 8rem);
    font-weight: 800;
    letter-spacing: -.088em;
    line-height: .86;
}

.wordmark span {
    display: block;
    margin-bottom: .7em;
    font-size: .23em;
    font-weight: 600;
    letter-spacing: .14em;
    line-height: 1;
    text-transform: uppercase;
    color: #a9ef72;
}

.tagline {
    margin: 1.1rem 0 0;
    color: #dce7d8;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.form-side {
    display: grid;
    align-items: center;
    max-width: 26rem;
    padding-block: clamp(1rem, 5vh, 3rem);
    width: 100%;
}

.auth-form { min-width: 0; }
.auth-form h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3.15vw, 3rem);
    letter-spacing: -.055em;
    line-height: 1.06;
}

.sub { margin: .9rem 0 1.75rem; color: var(--muted); }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .45rem; font-weight: 600; font-size: .9375rem; }

.field input {
    display: block;
    width: 100%;
    min-height: 3rem;
    padding: .65rem .85rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: .65rem;
    font: inherit;
}

.field input::placeholder { color: #879784; }

.field input:focus {
    border-color: var(--accent);
    outline: 2px solid #a7ee7055;
    outline-offset: 2px;
}

.btn {
    width: 100%;
    min-height: 3.15rem;
    margin-top: .3rem;
    padding: .7rem 1rem;
    border: 0;
    border-radius: .65rem;
    color: #10190b;
    background: var(--action);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .16s ease;
}

.btn:hover { background-color: var(--action-hover); }
.btn:focus-visible, .alt a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.alt { margin: 1.25rem 0 0; color: var(--muted); }
.alt a { color: var(--accent); font-weight: 600; text-underline-offset: .2em; }
.alt a:hover { color: #c5ffa1; }

.alert {
    margin-bottom: 1.25rem;
    padding: .75rem .9rem;
    background: #351824;
    color: #ffb8c4;
    border: 1px solid #693248;
    border-radius: .6rem;
}

.alert-success { color: #a2ecd1; background: #123128; border-color: #2a674e; }

@media (max-width: 48rem) {
    .auth-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.85rem;
        align-content: start;
        max-width: 33rem;
    }

    .brand-side {
        min-height: 14.5rem;
        padding: 1.4rem;
        background-position: center, 54% 41%;
        border-radius: 1.1rem;
    }

    .brand-mark { width: 2.5rem; height: 2.5rem; }
    .brand-message { margin-top: 2rem; }
    .wordmark { font-size: clamp(3.1rem, 12vw, 4.5rem); }
    .tagline { margin-top: .85rem; }
    .form-side { max-width: none; padding: 0 .2rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .btn { transition: none; }
}

