/* Auth Background Styles */
.auth-bg {
    background: linear-gradient(135deg,
            #8B5CF6 0%,
            /* Purple */
            #A855F7 15%,
            /* Purple-500 */
            #C084FC 30%,
            /* Purple-400 */
            #EC4899 50%,
            /* Pink-500 */
            #F472B6 70%,
            /* Pink-400 */
            #8B5CF6 100%
            /* Purple back */
        );
    min-height: 100vh;
    position: relative;
}

/* Animated gradient background */
.auth-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(139, 92, 246, 0.8),
            rgba(168, 85, 247, 0.8),
            rgba(192, 132, 252, 0.8),
            rgba(236, 72, 153, 0.8));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Glass card effect */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Form optimizations */
.auth-form {
    position: relative;
    z-index: 10;
}

.auth-optimized {
    padding: 1.25rem;
}

.auth-optimized .form-group {
    margin-bottom: 0.875rem;
}

.auth-optimized input {
    padding: 0.625rem 0.875rem;
    font-size: 16px;
    /* Prevent zoom on iOS */
}

.auth-optimized label {
    margin-bottom: 0.375rem;
}

.auth-optimized h1 {
    margin-bottom: 0.75rem;
}

.auth-optimized p {
    margin-bottom: 1rem;
}

.auth-optimized button {
    padding: 0.625rem 1.25rem;
    margin-top: 0.75rem;
    font-size: 16px;
}

/* Social buttons */
.social-btn {
    margin-bottom: 0.75rem;
    padding: 0.625rem 0.875rem;
}

/* Responsive */
@media (max-width: 640px) {
    .glass-card {
        padding: 1rem;
        margin: 1rem;
    }

    .auth-optimized {
        padding: 0.75rem;
    }

    .auth-optimized .form-group {
        margin-bottom: 0.625rem;
    }

    .auth-optimized input {
        padding: 0.5rem 0.75rem;
    }

    .auth-optimized button {
        padding: 0.5rem 1rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Form field focus states */
.form-field:focus-within {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Smooth transitions */
* {
    transition-duration: 200ms;
    transition-timing-function: ease-in-out;
}

/* Fix for mobile viewport */
@media screen and (max-width: 768px) {
    .auth-bg {
        min-height: 100dvh;
        /* Dynamic viewport height */
    }
}