@font-face {
    font-family: Fredoka;
    src: url("/user/herois-fantasia/fredoka.ttf") format("truetype");
    font-weight: 300 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --ink: #f2f5ff;
    --muted: #b4c3df;
    --line: #526d9994;
    --gold: #ffda87;
    --shadow: 0 24px 64px #050918b3;
}

body {
    background: radial-gradient(ellipse at 50% 0%, #233968, transparent 64%), #0b132c;
    font-family: Fredoka, system-ui, sans-serif;
}

body::before { content: none; }

.page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
    width: min(100%, 1000px);
    margin-inline: auto;
    padding: 18px clamp(12px, 4vw, 32px) 24px;
}

.entry-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.entry-logo {
    display: block;
    width: clamp(100px, 19vw, 148px);
    height: auto;
    filter: drop-shadow(0 4px 5px #05081899);
}

.entry-home {
    padding: 8px 13px;
    border: 1px solid #a78149;
    border-radius: 10px;
    background: #182443;
    color: #ffe4a8;
    font-size: .92rem;
    text-align: center;
}

.entry-home:hover { background: #29365a; }

.login-shell {
    width: 100%;
    border: 1px solid #b18a53;
    border-radius: 18px;
    background: #111e3c;
    backdrop-filter: none;
}

.panel {
    min-width: 0;
    padding: clamp(20px, 4vw, 36px);
    background: linear-gradient(150deg, #1b2b4d, #111b36 78%);
}

.panel-top { margin-bottom: 20px; }
.panel h2 { color: #ffe2a2; font-size: clamp(1.65rem, 4vw, 2.3rem); font-weight: 640; }
.hint { margin-top: 7px; color: var(--muted); font-size: .94rem; }
.status:empty { display: none; }

.status {
    min-height: 0;
    margin-bottom: 14px;
    padding: 9px 11px;
    border-radius: 9px;
    background: #152341;
    color: var(--muted);
}

.status.error { border-color: #f7899380; background: #462b45; color: #ffd1d6; }
.status.success { border-color: #82e7c278; background: #183c3f; color: #c1ffe9; }
.captcha-question { min-width: 62px; margin-left: 5px; color: #ffe3a5; background: #374263; }

.field { margin-bottom: 12px; }
.field label { margin-bottom: 5px; color: #edf2ff; font-size: .92rem; font-weight: 540; }

.input-wrap {
    min-height: 0;
    border-radius: 10px;
    background: #101a34;
    box-shadow: none;
    transition: border-color .18s ease;
}

.input-wrap:focus-within {
    border-color: #ffcf76;
    box-shadow: 0 0 0 2px #ffcf762e;
    transform: none;
}

.input-icon { flex: 0 0 40px; color: #a9bddf; font: 600 .72rem/1 system-ui, sans-serif; }
input, select { min-height: 46px; color: var(--ink); }
select { cursor: pointer; }
select option { color: var(--ink); background: #182444; }
input::placeholder { color: #93a6c7; }
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 40px #101a34 inset;
    -webkit-text-fill-color: var(--ink);
}

.actions {
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 4px 0 14px;
    font-size: .89rem;
}
.home-link { padding-block: 4px; color: #ffe0a0; font-weight: 520; }
.home-link:hover { text-decoration: underline; text-underline-offset: .19em; }

.login-btn {
    min-height: 49px;
    padding: 8px 42px;
    border: 1px solid #ffe6a1;
    border-radius: 10px;
    background: linear-gradient(#ffe7a2, #f6ba57 65%, #e59a36);
    box-shadow: inset 0 1px #fff4cf, 0 5px 16px #0005;
    color: #32200d;
    font: 650 1.05rem Fredoka, system-ui, sans-serif;
}
.login-btn:hover { box-shadow: 0 4px 16px #eac06033; transform: none; filter: brightness(1.06); }
.spinner { border-color: #704b1d49; border-top-color: #5c3813; }

.google-btn {
    min-height: 46px;
    margin-top: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #1b294a;
    box-shadow: none;
    color: var(--ink);
    font-size: .93rem;
    font-weight: 540;
}
.google-btn:not(.is-disabled):hover { background: #25375c; border-color: #acbfdf; }
.google-mark { font: 750 .9rem/1 system-ui, sans-serif; }

.page a:focus-visible,
.page button:focus-visible {
    outline: 2px solid #ffe2a2;
    outline-offset: 3px;
}

@media (min-width: 790px) {
    .login-shell { grid-template-columns: minmax(0, 1fr) minmax(375px, .9fr); }
    .login-shell::before {
        content: "";
        border-right: 1px solid #b18a5366;
        background:
            linear-gradient(180deg, #111e3c07, #101a3640 60%, #101a3699),
            url("/user/herois-rodape/castelo-960.webp") center / cover;
    }
}

@media (max-width: 789px) {
    .page { width: min(100%, 510px); }
}

@media (prefers-reduced-motion: reduce) {
    .login-btn,
    .input-wrap { transition: none; }
    .spinner { animation: none; }
}
