@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');
/*VARIABLES & RESET*/
:root {
    --bg-color:#070513;
    --neon-purple:#bf1aed;
    --neon-blue:#463da0;
    --neon-pink:#e944b7;
    --error-red:#ff4b4b;
    --text-light:#ffffff;
    --glass-bg:rgba(235, 230, 230, 0.05);
    --glass-border:rgba(255, 255, 255, 0.2);
}
* { 
    margin:0; 
    padding:0; 
    box-sizing:border-box; 
    font-family:'Poppins', sans-serif; }        
body {
    background-color:var(--bg-color);
    min-height:100vh;
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow-x:hidden;
    position:relative;
}
@media (prefers-color-scheme: light){
    body{
        background-color:rgb(244, 198, 228);
    }
    .tagline { 
    color: rgba(0, 0, 0, 0.7);    
    }            
}
/*ANIMATED BACKGROUND BLOBS*/
.background-blobs { 
    position: absolute; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    z-index:1; 
    overflow:hidden; 
}
.blob { 
    position:absolute; 
    border-radius:50%; 
    filter:blur(80px); 
    opacity:0.8; 
    animation:float 10s infinite alternate; 
}
.blob-1 { 
    top:10%; 
    left:20%; 
    width:300px; 
    height:300px; 
    background:var(--neon-purple); 
    animation-delay:0s;
 }
.blob-2 { 
    bottom:20%; 
    right:20%; 
    width:350px; 
    height:350px; 
    background:var(--neon-pink); 
    animation-delay:-5s; 
}
.blob-3 { 
    bottom:10%; 
    left:10%; 
    width:200px; 
    height:200px; 
    background: #24243e; 
    animation-delay:-2s; 
}
@keyframes float { 
    0% { transform:translate(0, 0) scale(1); } 
    100% { transform:translate(20px, -40px) scale(1.1); }
 }
/*GLASS CARD*/
.container {
    position:relative;
    z-index:10;
    width:90%;
    max-width:420px;
    min-height:720px; /* INCREASED from 600px to fit taller content */
    background:var(--glass-bg);
    border:1px solid var(--glass-border);
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);
    border-radius:20px;
    box-shadow:0 25px 45px rgba(125, 122, 122, 0.2);
    padding:40px;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    transition:height 0.3s ease;
}
.logo {
    text-align:center; 
    font-size:2.5rem;
    font-weight:700;
    margin-bottom:5px;
    background:linear-gradient(to right, #e850b5, #ca36f3);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent; 
    letter-spacing:2px;
}
.tagline { 
    text-align:center; 
    color: rgba(255, 253, 253, 0.7); 
    font-size:0.9rem; 
    margin-bottom:25px; 
    min-height:1.5em; 
}
/*TOGGLE BOX*/
.toggle-box {
    display: flex; 
    justify-content:space-between; 
    background: rgba(246, 239, 239, 0.3);
    border-radius:30px;
    padding:5px;
    margin-bottom:30px; 
    position: relative;
    transition: all 0.5s ease;
    opacity: 1;
    height: 50px;
}
.toggle-box.hidden { 
    opacity: 0; 
    pointer-events: none; 
    margin-bottom: 0; 
    height: 0; 
    padding: 0; 
    overflow: hidden; 
}
.toggle-btn {
    flex: 1;
    text-align: center;
    padding: 10px; 
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer; 
    z-index: 2;
    transition: color 0.3s; 
    font-size: 0.9rem; 
    font-weight: 500;
    display: flex;
    align-items: center; 
    justify-content: center;
}
.toggle-btn.active { 
    color: #ffffff; 
}
#btn-slider{
    position: absolute; 
    top: 5px;
    left: 5px; 
    width: calc(50% - 5px); 
    height: calc(100% - 10px);
    background: var(--neon-purple); 
    border-radius: 25px; 
    transition: 0.4s ease; 
    z-index: 1;
    box-shadow: 0 0 15px var(--neon-purple);
}
/*INPUTS*/
.input-group { 
    position: relative; 
    margin-bottom: 25px; 
} 
.input-group input {
    width:100%;
    padding: 12px 20px; 
    background: rgba(255,255,255,0.1);
    border:1px solid transparent; 
    outline: none;
    border-radius: 30px;
    color:#ffffff; 
    font-size: 1rem;
    transition: 0.3s;
}
.input-group input::placeholder { 
    color: rgba(255, 255, 255, 0.5); 
}
.input-group input:focus {
    background: rgba(255,255,255,0.15); 
    border:1px solid rgba(255,255,255,0.3);
    box-shadow:0 0 10px rgba(176, 44, 214, 0.3);
}
/* ERROS STATE STYLING */
.input-group.error input {
    border-color: var(--error-red);
    box-shadow: 0 0 10px rgba(255, 75, 75, 0.4);
    animation: shake 0.4s ease-in-out;
}
.error-message {
    position: absolute;
    bottom: -22px; 
    left: 20px;
    font-size: 0.75rem;
    color: var(--error-red);
    opacity:0;
    transform:translateY(-5px);
    transition: all 0.3s ease;
    pointer-events: none;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    white-space: pre-wrap; 
    line-height: 1.2;
}
.input-group.error .error-message {
    opacity: 1;
    transform: translateY(0);
}
.error-link {
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 700;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
/*BUTTONS*/
.submit-btn {
    width: 100%; 
    padding: 12px; 
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
    border: none; 
    border-radius: 30px; 
    color: #fff; 
    font-size: 1rem; 
    font-weight: 600;
    cursor: pointer; 
    transition: 0.3s; 
    margin-top: 5px; 
    box-shadow: 0 5px 15px rgba(220, 67, 231, 0.4);
}
.submit-btn:hover {
     transform: translateY(-2px); 
     box-shadow: 0 8px 20px rgba(200, 61, 238, 0.6); 
}

/* --- SOCIAL AUTH STYLES --- */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}
.separator::before, .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.separator span {
    padding: 0 10px;
}
.social-btn {
    width: 100%;
    padding: 12px;
    background: #ffffff;
    border: none;
    border-radius: 30px;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.social-btn img {
    width: 20px;
    height: 20px;
}
.social-btn:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}
/* -------------------------- */

/*WELCOME ANIMATION VIEW*/
#welcomeView {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    height: 100%;
}
.profile-photo {
    width: 100px;
    height: 100px; 
    border-radius: 50%;
    background:url('https://api.dicebear.com/7.x/avataaars/svg?seed=Felix') no-repeat center center;
    background-size: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 0 25px var(--neon-pink);
    margin-bottom: 20px;
    transform: scale(0); 
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.profile-photo.pop { 
    transform: scale(1);
 }      
.welcome-text {
    text-align:center; 
    color:#fff; 
    opacity:0; 
    transform:translateY(20px); 
    transition:all 0.5s ease 0.3s;
}
.welcome-text.show{ 
    opacity:1; 
    transform:translateY(0); 
}
.welcome-text h2 { 
    font-size: 1.8rem; 
    margin-bottom: 5px; 
}
.welcome-text p { 
    font-size: 1rem; 
    opacity: 0.8; 
}
/*SUCCESS VIEW*/
.success-content { 
    text-align: center; 
    color: #fff; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    height: 100%;
 }
.success-icon { 
    width: 70px; 
    height: 70px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 20px; 
    box-shadow: 0 0 20px rgba(206, 97, 237, 0.4);
 }
.success-icon svg { 
    width: 35px; 
    height: 35px; 
    fill: var(--neon-pink);
 }
.success-content h3 { 
    font-size: 1.5rem; 
    margin-bottom: 10px; 
}
.success-content p { 
    font-size: 0.9rem; 
    opacity: 0.8; 
    margin-bottom: 20px;
 }
/*FORM WRAPPER & ANIMATIONS*/
.form-wrapper { 
    position: relative; 
    width: 100%; 
    height: 480px; /* FIXED: Increased from 300px to 480px to fit Google Btn */
    overflow: hidden;
    transition: height 0.4s ease; /* Smooth resizing */
 }
.form-section { 
    position: absolute; 
    top: 0; 
    width: 100%; 
    transition: all 0.5s ease-in-out; 
    opacity: 0; 
    pointer-events: none; 
    transform: translateX(100px); 
}
.form-section.active-form { 
    opacity: 1; 
    pointer-events: all; 
    transform: translateX(0); 
}
.form-section.move-left { 
    transform: translateX(-100px); 
}
.form-section.move-right { 
    transform: translateX(100px); 
}
.bottom-link { 
    text-align: center; 
    margin-top: auto; 
    font-size: 0.85rem; 
    color: rgba(255,255,255,0.6); 
    z-index: 20; 
}
.bottom-link a { 
    color: var(--neon-pink); 
    text-decoration: none; 
    font-weight: 600; 
    cursor: pointer; }
.bottom-link a:hover { 
    text-decoration: underline; 
}
@media (max-width: 480px) {
    .container { 
        padding: 25px; 
        min-height: 600px;
     }
    .logo { font-size: 2rem; }
    .form-wrapper { 
        height: 450px; /* Adjusted for mobile */
    }
}