/* ============================================
   AUTH PAGE STYLES (Light Mode)
   ============================================ */

.auth-page {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 50%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
}

/* Background Orbs */
.auth-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: authFloat 25s ease-in-out infinite;
}

.auth-gradient-orb.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.auth-gradient-orb.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: -8s;
}

.auth-gradient-orb.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -16s;
}

@keyframes authFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -40px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* Container */
.auth-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1100px;
    width: 100%;
}

/* Branding Section */
.auth-branding {
    flex: 1;
    max-width: 450px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 40px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.auth-logo:hover {
    opacity: 0.8;
}

.auth-logo svg {
    width: 48px;
    height: 48px;
}

.auth-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 17px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 40px;
}

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

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #4b5563;
}

.auth-feature svg {
    color: #6366f1;
    flex-shrink: 0;
}

/* Form Container */
.auth-form-container {
    flex: 1;
    max-width: 420px;
    display: flex;
    justify-content: center;
}

/* Clerk Customizations - Light Mode */
.auth-form-container :global(.cl-rootBox) {
    width: 100%;
}

.auth-form-container :global(.cl-card) {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(20px);
}

.auth-form-container :global(.cl-headerTitle) {
    color: #111827 !important;
    font-weight: 700 !important;
}

.auth-form-container :global(.cl-headerSubtitle) {
    color: #6b7280 !important;
}

.auth-form-container :global(.cl-socialButtonsBlockButton) {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    color: #111827 !important;
    transition: all 0.2s ease !important;
}

.auth-form-container :global(.cl-socialButtonsBlockButton:hover) {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
}

.auth-form-container :global(.cl-formFieldInput) {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    color: #111827 !important;
}

.auth-form-container :global(.cl-formFieldInput:focus) {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

.auth-form-container :global(.cl-formButtonPrimary) {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.auth-form-container :global(.cl-formButtonPrimary:hover) {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.auth-form-container :global(.cl-footerActionLink) {
    color: #6366f1 !important;
}

.auth-form-container :global(.cl-footerActionLink:hover) {
    color: #4f46e5 !important;
}

.auth-form-container :global(.cl-dividerLine) {
    background: #e5e7eb !important;
}

.auth-form-container :global(.cl-dividerText) {
    color: #9ca3af !important;
}

.auth-form-container :global(.cl-formFieldLabel) {
    color: #374151 !important;
}

.auth-form-container :global(.cl-internal-b3fm6y) {
    color: #9ca3af !important;
}

/* Signed In State */
.auth-signed-in {
    text-align: center;
    padding: 48px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(20px);
}

.auth-signed-in-icon {
    margin-bottom: 24px;
}

.auth-signed-in h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.auth-signed-in p {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 32px;
}

.auth-go-to-app {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-go-to-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Back Button */
.auth-back-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.auth-back-btn:hover {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
        gap: 48px;
    }

    .auth-branding {
        text-align: center;
        max-width: 100%;
    }

    .auth-features {
        align-items: center;
    }

    .auth-form-container {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 80px 16px 40px;
    }

    .auth-title {
        font-size: 28px;
    }

    .auth-features {
        display: none;
    }
}