﻿/* ============================================================
   Auth pages (login / signup / forgot password)
   Uses the ew-theme.css tokens.
   ============================================================ */

.auth-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.auth-title {
    margin: 0 0 0.25rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
}

.auth-sub {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-error {
    margin-bottom: 1rem;
    padding: 0.7rem 0.85rem;
    border-radius: calc(var(--radius) - 3px);
    background: var(--negative-soft);
    color: var(--negative);
    font-size: 0.9rem;
}

    .auth-error:empty {
        display: none;
    }

.auth-form {
    display: grid;
    gap: 1.1rem;
}

.auth-field {
    display: grid;
    gap: 0.35rem;
}

.auth-label {
    font-size: 0.85rem;
    font-weight: 650;
    color: var(--text-muted);
}

.auth-input {
    height: 46px;
    padding: 0 0.85rem;
    border: 1px solid var(--border-strong);
    border-radius: calc(var(--radius) - 2px);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

    .auth-input:focus {
        outline: none;
        border-color: var(--ew-front);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--ew-front) 25%, transparent);
    }

.auth-field-error {
    color: var(--negative);
    font-size: 0.82rem;
}

.auth-submit {
    height: 48px;
    margin-top: 0.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--ew-front);
    color: var(--ew-dark);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

    .auth-submit:hover,
    .auth-submit:focus-visible {
        background: var(--ew-front-hover);
    }

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    font-size: 0.88rem;
}

    .auth-links a {
        color: var(--accent);
        text-decoration: none;
    }

        .auth-links a:hover {
            color: var(--accent-hover);
        }
