:root {
    --auth-bg: #111827;
    --auth-surface: #1f2937;
    --auth-border: #374151;
    --auth-text: #f9fafb;
    --auth-muted: #9ca3af;
    --auth-accent: #6366f1;
    --auth-accent-rgb: 99, 102, 241;
}

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

body.auth-page {
    font-family: 'Inter', sans-serif;
    background: var(--auth-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.auth-card {
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    padding: 40px 36px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo .logo-icon {
    width: 56px;
    height: 56px;
    background: var(--auth-accent);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 16px;
}

.auth-logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--auth-text);
    letter-spacing: -0.5px;
}

.auth-logo p {
    color: var(--auth-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.auth-card .form-label {
    color: var(--auth-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.auth-card .form-control {
    background: var(--auth-bg);
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    color: var(--auth-text);
    padding: 11px 14px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.auth-card .form-control:focus {
    background: var(--auth-bg);
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(var(--auth-accent-rgb), 0.12);
    color: var(--auth-text);
}

.auth-card .form-control::placeholder {
    color: #4b5563;
}

.auth-card .input-group-text {
    background: var(--auth-bg);
    border: 1px solid var(--auth-border);
    border-radius: 10px 0 0 10px;
    color: var(--auth-muted);
}

.auth-card .input-group .form-control {
    border-radius: 0 10px 10px 0;
}

.btn-auth {
    background: var(--auth-accent);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-auth:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: white;
}

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

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #4b5563;
    font-size: 0.8rem;
}

.auth-hint {
    color: #6b7280;
    font-size: 0.78rem;
    margin-top: 4px;
    display: block;
}

/* Alert styles */
.auth-card .alert {
    border-radius: 10px;
    border: none;
    font-size: 0.85rem;
    padding: 10px 14px;
}

.auth-card .alert-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 22px;
        border-radius: 14px;
    }
}
