/* Modern Auth Premium Styles - Enhanced */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --auth-primary: #3b82f6;
    --auth-primary-dark: #1d4ed8;
    --auth-primary-glow: rgba(59, 130, 246, 0.4);
    --auth-bg-light: #f8fafc;
    --auth-text-main: #1e293b;
    --auth-text-muted: #64748b;
    --auth-glass: rgba(255, 255, 255, 0.85);
    --auth-card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--auth-text-main);
    overflow-x: hidden;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    background: var(--auth-bg-light);
}

.auth-image-side {
    display: none;
    position: relative;
    flex: 1.2;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .auth-image-side {
        display: block;
    }
}

.auth-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(30, 41, 59, 0.5) 100%);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem;
    color: white;
    z-index: 2;
}

/* Subtle animated background lights */
.auth-image-side::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 75% 25%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 25% 75%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
    animation: rotate 30s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    position: relative;
    background-color: #ffffff;
    z-index: 10;
}

@media (max-width: 1024px) {
    .auth-form-side {
        padding: 1.5rem;
    }
    
    .auth-form-side::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        z-index: -1;
    }
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    border-radius: 2rem;
    background: var(--auth-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--auth-card-shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1024px) {
    .auth-card {
        background: rgba(255, 255, 255, 0.95);
        padding: 2rem;
    }
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--auth-text-main);
    margin-left: 0.25rem;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border-radius: 1rem;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    font-size: 0.95rem;
    color: var(--auth-text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:focus {
    outline: none;
    border-color: var(--auth-primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--auth-primary-glow);
    transform: scale(1.01);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--auth-primary);
    background-image: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(59, 130, 246, 0.5);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 1rem;
    font-weight: 600;
    color: #475569;
    background: white;
    transition: all 0.2s;
    cursor: pointer;
}

.social-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Luxury Dividers */
.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider::before { margin-right: 1rem; }
.divider::after { margin-left: 1rem; }

/* Animations */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.auth-card {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.animate-float {
    animation: float 10s ease-in-out infinite;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--auth-text-muted);
}

.custom-checkbox input {
    display: none;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.custom-checkbox input:checked + .checkbox-mark {
    background: var(--auth-primary);
    border-color: var(--auth-primary);
}

.checkbox-mark::after {
    content: "✓";
    color: white;
    font-size: 12px;
    display: none;
}

.custom-checkbox input:checked + .checkbox-mark::after {
    display: block;
}
