:root {
    --bg: #0d1224;
    --card: rgba(15, 20, 38, 0.82);
    --accent: #5cc8ff;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --error: #f43f5e;
}

* {
    box-sizing: border-box;
}

.auth-body {
    font-family: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(circle at 20% 20%, rgba(92, 200, 255, 0.25), transparent 22%),
    radial-gradient(circle at 80% 0%, rgba(92, 200, 255, 0.16), transparent 24%),
    linear-gradient(140deg, #0b1020, #0d1224 55%, #0a101f);
    color: var(--text);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(84, 193, 255, 0.12);
    color: #e5f4ff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 30px -24px rgba(31, 55, 125, 0.6);
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
}

.login-card {
    width: min(520px, 100%);
}

.register-card {
    width: min(600px, 100%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(92, 200, 255, 0.18);
    padding: 6px;
}

.brand h1 {
    margin: 0;
    font-size: 1.35rem;
    color: #f8fafc;
}

.subtitle {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.auth-alert {
    border: 1px solid rgba(244, 63, 94, 0.35);
    background: rgba(244, 63, 94, 0.1);
    color: #fecdd3;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    justify-content: space-between;
}

.auth-alert .text {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.auth-alert i {
    color: #fff;
}

.auth-alert .btn-close {
    opacity: 0.7;
}

.auth-alert .btn-close:hover {
    opacity: 1;
}

.form-label {
    color: #e2e8f0;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.9rem;
    padding: 0.7rem 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: rgba(92, 200, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(92, 200, 255, 0.16);
}

.input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text);
    outline: none;
    font-size: 1rem;
}

.input-wrapper i {
    color: var(--muted);
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: center;
    margin: 0.5rem 0 0.25rem;
}

.actions-row a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.actions-row a:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(120deg, #5cc8ff, #69f0ff);
    border: none;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-top: 0.4rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px -22px rgba(92, 200, 255, 0.8);
}

.meta {
    margin-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.meta a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.meta a:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .auth-body {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.4rem;
    }
}

/* Legacy helpers kept for compatibility */
.form-right a {
    text-decoration: none;
}

.login-page {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
}

.form-right i {
    font-size: 100px;
}
