* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(165deg, #060a14 0%, #12182a 35%, #1a1035 65%, #0d1528 100%);
    color: #e8f0ff;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: rgba(12, 18, 36, 0.92);
    border: 1px solid rgba(120, 180, 255, 0.22);
    border-radius: 14px;
    padding: 28px 24px 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45), 0 0 60px rgba(74, 111, 165, 0.12);
    backdrop-filter: blur(10px);
}

.auth-brand {
    text-align: center;
    margin-bottom: 24px;
}

.auth-brand h1 {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #f0f6ff;
    text-transform: uppercase;
}

.auth-brand .subtitle {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: #8ab4f8;
    border: 1px solid rgba(138, 180, 248, 0.35);
    border-radius: 20px;
    text-transform: uppercase;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(120, 180, 255, 0.2);
    border-radius: 8px;
    background: rgba(20, 30, 55, 0.6);
    color: #8aa8d8;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s ease;
}

.auth-tab:hover {
    color: #c8dcff;
    border-color: rgba(120, 180, 255, 0.4);
}

.auth-tab.active {
    background: linear-gradient(135deg, rgba(40, 70, 130, 0.7), rgba(50, 35, 90, 0.7));
    color: #ffe66d;
    border-color: rgba(255, 230, 109, 0.45);
}

.auth-form label {
    display: block;
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #9ab4e0;
    text-transform: uppercase;
}

.auth-form label span.optional {
    font-weight: 400;
    text-transform: none;
    color: #6a84b0;
    font-size: 0.72rem;
}

.auth-form input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid rgba(120, 180, 255, 0.25);
    border-radius: 8px;
    background: rgba(8, 12, 24, 0.85);
    color: #f0f6ff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s ease;
}

.auth-form input:focus {
    border-color: rgba(116, 185, 255, 0.65);
    box-shadow: 0 0 0 2px rgba(116, 185, 255, 0.15);
}

.auth-form button {
    width: 100%;
    margin-top: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #3d6cb9, #5a4a9e);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.auth-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(61, 108, 185, 0.35);
}

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

.auth-alert {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.auth-alert.error {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: #ffb3b3;
}

.auth-alert.success {
    background: rgba(85, 239, 196, 0.12);
    border: 1px solid rgba(85, 239, 196, 0.35);
    color: #a8f5e0;
}

.auth-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 0.75rem;
    color: #5a74a0;
}