:root {
    --bg-1: #08001a;
    --bg-2: #12002b;
    --panel: rgba(16, 8, 40, 0.78);
    --panel-border: rgba(91, 255, 219, 0.45);
    --text: #f4eeff;
    --muted: #d9cbff;
    --accent: #00f5d4;
    --accent-2: #00bbf9;
    --focus: #7cf7ff;
}

* {
    box-sizing: border-box;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        linear-gradient(130deg, rgba(7, 3, 24, 0.9), rgba(5, 1, 20, 0.84)),
        url("../assets/backgrounds/farming-neon.svg") center / cover no-repeat fixed;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.auth-panel {
    width: min(100%, 460px);
    padding: 2rem 1.75rem;
    border-radius: 1.2rem;
    border: 1px solid var(--panel-border);
    background: linear-gradient(160deg, var(--panel), rgba(8, 4, 26, 0.9));
    box-shadow:
        0 24px 55px rgba(0, 0, 0, 0.45),
        0 0 35px rgba(0, 245, 212, 0.18);
    backdrop-filter: blur(8px);
}

.auth-kicker {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.auth-panel h1 {
    margin: 0.4rem 0 0;
    font-size: clamp(1.45rem, 3.4vw, 2rem);
}

.auth-subtitle {
    margin: 0.6rem 0 1.35rem;
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.95rem;
}

.auth-alert,
.auth-success {
    margin: 0 0 0.9rem;
    padding: 0.6rem 0.72rem;
    border-radius: 0.65rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.auth-alert {
    background: rgba(255, 77, 109, 0.16);
    border: 1px solid rgba(255, 77, 109, 0.45);
    color: #ffd7df;
}

.auth-success {
    background: rgba(0, 245, 212, 0.14);
    border: 1px solid rgba(0, 245, 212, 0.38);
    color: #ccfff7;
}

.auth-form {
    display: grid;
    gap: 0.7rem;
}

.auth-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #d9f8ff;
}

.auth-form input {
    border: 1px solid rgba(124, 247, 255, 0.26);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    padding: 0.72rem 0.82rem;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-form input:focus {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(124, 247, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
}

.auth-form button {
    margin-top: 0.5rem;
    border: 0;
    border-radius: 0.75rem;
    padding: 0.78rem 0.9rem;
    color: #061228;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.auth-form button:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 26px rgba(0, 187, 249, 0.3);
}

.auth-form button:active {
    transform: translateY(1px);
}

.auth-footer {
    margin: 1.15rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 560px) {
    .auth-panel {
        padding: 1.35rem 1.05rem;
    }
}
