/* Enhanced Authentication Page Styles */

/* Custom glassmorphism effects */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Smooth input animations */
.enhanced-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(249, 250, 251, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.enhanced-input:focus {
    transform: scale(1.02);
    background: rgba(249, 250, 251, 0.9);
    box-shadow: 
        0 10px 25px -5px rgba(59, 130, 246, 0.1),
        0 10px 10px -5px rgba(59, 130, 246, 0.04),
        0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Enhanced button styles */
.macos-button {
    background: linear-gradient(135deg, #2A50BC 0%, #1d4ed8 100%);
    box-shadow: 
        0 10px 20px -5px rgba(59, 130, 246, 0.3),
        0 6px 10px -5px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease-out;
}

.macos-button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 
        0 15px 30px -5px rgba(59, 130, 246, 0.4),
        0 10px 15px -5px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.macos-button:active {
    transform: translateY(0);
    box-shadow: 
        0 5px 15px -5px rgba(59, 130, 246, 0.3),
        0 3px 8px -5px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Wallpaper animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wallpaper-fade-in {
    animation: fadeIn 1.5s ease-out;
}

/* Feature items slide-in animation */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-slide-in {
    animation: slideInFromLeft 0.6s ease-out forwards;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Loading spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* Progress indicators */
.progress-dot {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-dot.active {
    background: linear-gradient(135deg, #2A50BC 0%, #1d4ed8 100%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.progress-dot.active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #2A50BC, #1d4ed8);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Enhanced focus states */
.focus-visible:focus-visible {
    outline: 2px solid #2A50BC;
    outline-offset: 2px;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .glass-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
}

@media (max-width: 768px) {
    .enhanced-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .glass-card {
        border-radius: 20px;
        margin: 16px;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .glass-card {
        background: rgba(17, 24, 39, 0.9);
        border: 1px solid rgba(75, 85, 99, 0.3);
    }
    
    .enhanced-input {
        background: rgba(31, 41, 55, 0.7);
        color: #f9fafb;
    }
    
    .enhanced-input::placeholder {
        color: #9ca3af;
    }
}

/* Performance optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Curved divider styles */
.curved-divider {
    clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
}

.curved-divider::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0.8) 100%);
    clip-path: polygon(0% 0%, 100% 8%, 100% 92%, 0% 100%);
    filter: blur(1px);
}

/* Enhanced curved section for better visual separation */
@media (min-width: 1024px) {
    .curved-section {
        mask: linear-gradient(135deg, transparent 0%, transparent 2%, black 8%, black 100%);
        -webkit-mask: linear-gradient(135deg, transparent 0%, transparent 2%, black 8%, black 100%);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .enhanced-input,
    .macos-button,
    .progress-dot {
        transition: none;
    }
    
    .wallpaper-fade-in,
    .feature-slide-in {
        animation: none;
    }
}