/* ============================================
   AUTH PAGE STYLES
   ============================================ */

.auth-page {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 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.5;
    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.4) 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.35) 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.25) 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: #fff;
    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: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.6);
    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: rgba(255, 255, 255, 0.8);
}

.auth-feature svg {
    color: #10b981;
    flex-shrink: 0;
}

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

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

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

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

.auth-form-container :global(.cl-headerSubtitle) {
    color: rgba(255, 255, 255, 0.6) !important;
}

.auth-form-container :global(.cl-socialButtonsBlockButton) {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #fff !important;
    transition: all 0.2s ease !important;
}

.auth-form-container :global(.cl-socialButtonsBlockButton:hover) {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.auth-form-container :global(.cl-formFieldInput) {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #fff !important;
}

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

.auth-form-container :global(.cl-formButtonPrimary) {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 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(99, 102, 241, 0.4) !important;
}

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

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

.auth-form-container :global(.cl-dividerLine) {
    background: rgba(255, 255, 255, 0.1) !important;
}

.auth-form-container :global(.cl-dividerText) {
    color: rgba(255, 255, 255, 0.4) !important;
}

.auth-form-container :global(.cl-formFieldLabel) {
    color: rgba(255, 255, 255, 0.8) !important;
}

.auth-form-container :global(.cl-internal-b3fm6y) {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Signed In State */
.auth-signed-in {
    text-align: center;
    padding: 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    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: #fff;
    margin-bottom: 8px;
}

.auth-signed-in p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

.auth-go-to-app {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 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(99, 102, 241, 0.4);
}

/* 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.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.auth-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 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;
    }
}