:root {
    --auth-bg: #f8fafc;
    --auth-card: #ffffff;
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-primary: #0369a1;
    --auth-primary-hover: #075985;
    --auth-primary-soft: #e0f2fe;
    --auth-danger-bg: #fef2f2;
    --auth-danger: #b91c1c;
    --auth-font: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

.auth-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: var(--auth-font);
    background:
        radial-gradient(1000px 500px at 50% -10%, var(--auth-primary-soft) 0%, transparent 55%),
        var(--auth-bg);
    color: var(--auth-text);
    -webkit-font-smoothing: antialiased;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.auth-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--auth-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.auth-logo-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.auth-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--auth-muted);
    text-align: center;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }

.auth-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--auth-text);
}

.auth-field input {
    height: 44px;
    padding: 0 14px;
    font-family: var(--auth-font);
    font-size: 15px;
    color: var(--auth-text);
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.13);
}

.auth-btn {
    height: 46px;
    margin-top: 4px;
    font-family: var(--auth-font);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--auth-primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.auth-btn:hover { background: var(--auth-primary-hover); }
.auth-btn:disabled { opacity: 0.65; cursor: default; }

.auth-error {
    padding: 10px 12px;
    font-size: 13px;
    color: var(--auth-danger);
    background: var(--auth-danger-bg);
    border: 1px solid #fecaca;
    border-radius: 10px;
}

.auth-switch {
    margin: 22px 0 0;
    font-size: 14px;
    text-align: center;
    color: var(--auth-muted);
}

.auth-switch a {
    color: var(--auth-primary);
    font-weight: 500;
    text-decoration: none;
}

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

.hidden { display: none !important; }
