/* ===== Auth Section Styles - Modern Professional Theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Global reset for auth section */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#authSection {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
 
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #6780f1 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

/* Enhanced animated background elements */
#authSection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Floating particles animation */
#authSection::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.5), transparent);
    background-repeat: repeat;
    background-size: 400px 200px;
    animation: floatingParticles 20s linear infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes floatingParticles {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

/* Modern glassmorphism wrapper */
.wrapper {
    position: relative;
    top:50px;
    margin:0 auto;    
    width: 440px;
    height:600px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#authSection .wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

/* Enhanced header styles */
#authSection .wrapper h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    position: relative;
}

#authSection .wrapper h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-radius: 2px;
}

#authSection .wrapper h2 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.01em;
}

/* Modern input container */
#authSection .wrapper .input-box {
    position: relative;
    width: 100%;
    margin: 2px 0;
}

/* Enhanced input styles */
#authSection .input-box input {
    width: 100%;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    font-size: 16px;
    color: #ffffff;
    padding: 16px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    outline: none;
    font-weight: 400;
}

#authSection .input-box input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.1),
        0 4px 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

#authSection .input-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* Input focus animation */
#authSection .input-box input:focus::placeholder {
    color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Enhanced button styles */
#authSection .wrapper .btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border: none;
    outline: none;
    border-radius: 16px;
    box-shadow: 
        0 4px 20px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: -1px 0 1px 0;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

#authSection .wrapper .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

#authSection .wrapper .btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 30px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.9));
}

#authSection .wrapper .btn:hover::before {
    left: 100%;
}

#authSection .wrapper .btn:active {
    transform: translateY(-1px);
}

/* Enhanced link styles */
#authSection .wrapper .register-link {
    font-size: 15px;
    text-align: center;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

#authSection .register-link .link-btn {
    background: none;
    border: none;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    font-family: 'Inter', sans-serif;
    position: relative;
    margin-left: 4px;
}

#authSection .register-link .link-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #a855f7, #ec4899);
    transition: width 0.3s ease;
}

#authSection .register-link .link-btn:hover {
    color: #e0e7ff;
    transform: translateY(-1px);
}

#authSection .register-link .link-btn:hover::after {
    width: 100%;
}

/* Form styles with enhanced spacing */
#authSection form {
    width: 100%;
}

#authSection form input[type="text"],
#authSection form input[type="email"],
#authSection form input[type="password"] {
    width: 100%;
    height: 56px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    font-size: 16px;
    color: #ffffff;
    padding: 16px 20px;
    margin-bottom: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    outline: none;
    font-weight: 400;
}

#authSection form input[type="text"]:focus,
#authSection form input[type="email"]:focus,
#authSection form input[type="password"]:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.1),
        0 4px 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

#authSection form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* Loading animation for button */
@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#authSection .wrapper .btn.loading {
    animation: buttonPulse 1s infinite;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    #authSection .wrapper {
        width: 90%;
        max-width: 440px;
        padding: 40px 32px;
        margin: 20px;
    }
    
    #authSection .wrapper h1 {
        font-size: 2.5rem;
    }
    
    #authSection .wrapper h2 {
        font-size: 1.5rem;
        margin-bottom: 32px;
    }
    
    #authSection .input-box input,
    #authSection form input[type="text"],
    #authSection form input[type="email"],
    #authSection form input[type="password"] {
        height: 52px;
        font-size: 15px;
        padding: 14px 18px;
    }
    
    #authSection .wrapper .btn {
        height: 52px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    #authSection .wrapper {
        width: 95%;
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    #authSection .wrapper h1 {
        font-size: 2.25rem;
    }
    
    #authSection .wrapper h2 {
        font-size: 1.375rem;
    }
    
    #authSection .input-box input,
    #authSection form input[type="text"],
    #authSection form input[type="email"],
    #authSection form input[type="password"] {
        height: 48px;
        font-size: 14px;
        padding: 12px 16px;
        border-radius: 14px;
    }
    
    #authSection .wrapper .btn {
        height: 48px;
        font-size: 14px;
        border-radius: 14px;
    }
    
    #authSection .register-link {
        font-size: 14px;
    }
    
    #authSection .register-link .link-btn {
        font-size: 14px;
    }
}

/* Hide other sections when auth is active */
body #dashboardSection,
body #portfolioSection,
body #othersSection {
    display: none;
}

/* Show auth section by default */
body #authSection {
    display: flex;
}

/* Smooth page transition effects */
#authSection {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced accessibility */
#authSection .wrapper .btn:focus-visible {
    box-shadow: 
        0 8px 30px rgba(255, 255, 255, 0.3),
        0 0 0 4px rgba(255, 255, 255, 0.3);
}

#authSection .input-box input:focus-visible {
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.2),
        0 4px 20px rgba(255, 255, 255, 0.15);
}

#authSection .register-link .link-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}