/* ============================================================
   AUTH PAGES - PREMIUM REDESIGN
   ============================================================ */

:root {
    --auth-bg-dark: linear-gradient(135deg, #060a1f 0%, #0d122b 50%, #1a1f3a 100%);
    --auth-bg-light: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --primary-gradient: linear-gradient(135deg, #e8500a 0%, #f97316 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--auth-bg-dark);
    position: relative;
    overflow: hidden;
}

/* Decorative Blobs */
.auth-section::before,
.auth-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}

.auth-section::before {
    top: -100px;
    right: -100px;
    background: #e8500a;
}

.auth-section::after {
    bottom: -100px;
    left: -100px;
    background: #1a1f3a;
}

:root.light-theme .auth-section {
    background: var(--auth-bg-light);
}

:root.light-theme .auth-section::before {
    opacity: 0.1;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

:root.light-theme .auth-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(232, 80, 10, 0.1);
    box-shadow: 0 10px 40px rgba(232, 80, 10, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    max-width: 120px;
    height: auto;
    margin: 0 auto 24px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(232, 80, 10, 0.2));
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

:root.light-theme .auth-header h1 {
    color: #0f172a;
}

.auth-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

:root.light-theme .auth-header p {
    color: #64748b;
}

/* ---- Alerts ---- */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 32px;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

/* ---- Form ---- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 4px;
}

:root.light-theme .form-group label {
    color: #334155;
}

.form-input {
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

:root.light-theme .form-input {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}

.form-input:focus {
    outline: none;
    border-color: #e8500a;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(232, 80, 10, 0.15);
    transform: scale(1.01);
}

:root.light-theme .form-input:focus {
    background: #ffffff;
    border-color: #e8500a;
    box-shadow: 0 0 0 4px rgba(232, 80, 10, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

:root.light-theme .form-input::placeholder {
    color: #94a3b8;
}

/* ---- Button ---- */
.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(232, 80, 10, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(232, 80, 10, 0.4);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ---- Footer ---- */
.auth-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
}

:root.light-theme .auth-footer {
    border-top-color: #f1f5f9;
}

.auth-footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

:root.light-theme .auth-footer p {
    color: #64748b;
}

.auth-footer a {
    color: #e8500a;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.auth-footer a:hover {
    color: #f97316;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .auth-card {
        padding: 40px 24px;
        border-radius: 20px;
    }

    .auth-header h1 {
        font-size: 28px;
    }

    .btn-primary {
        padding: 14px 20px;
    }
}
