#login-screen {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: linear-gradient(135deg, #000000 0%, #764ba2 100%);
    padding: 20px;
    overflow-y: auto;   /* ativa a rolagem */
    height: 100vh;      /* trava no tamanho da tela */
}



.auth-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease;
margin-bottom: 30px;
margin-top: 30px;

}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
    
}

.auth-header .logo {
    width: 80px;
    height: 80px;
}

.auth-header h1 {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.auth-forms {
    position: relative;
}

.auth-form {
    display: none;
    animation: fadeIn 0.4s ease;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.input-group input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
    background: white;
}

.input-group input::placeholder {
    color: #999;
    font-weight: 400;
}

.auth-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    transition: all 0.3s ease;
}

.auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.auth-switch {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 14px;
}

.auth-switch a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: #45a049;
    text-decoration: underline;
}

/* Form Validation States */
.input-group.error input {
    border-color: #f44336;
    box-shadow: 0 0 0 4px rgba(244, 67, 54, 0.1);
}

.input-group.success input {
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.error-message {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.auth-form.loading {
    pointer-events: none;
    opacity: 0.7;
}

.auth-form.loading .btn-primary {
    background: #ccc;
    cursor: not-allowed;
}

.auth-form.loading .btn-primary::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 30px 20px;
        margin: 10px;
        border-radius: 15px;
        text-align: center;
        justify-content: center;
        width: 95%;
        margin-top: 30%;
    }

    .auth-header {
    background: linear-gradient(135deg, #ffffff 0%, #be7dff 100%);
    
    /* 1. Transforma o contêiner em um flex container */
    display: flex;

    /* 2. Define a direção dos itens para coluna (um abaixo do outro) */
    flex-direction: column;

    /* 3. Centraliza os itens horizontalmente (no eixo principal) */
    align-items: center;

    /* 4. Centraliza os itens verticalmente (no eixo transversal) */
    justify-content: center;

    /* Opcional: Adiciona um preenchimento para dar mais respiro */
    padding: 20px; 
    
    /* Opcional: Garante que o texto também seja centralizado, caso haja algum texto solto */
    text-align: center; 
    border-radius: 20px;
}



    .auth-header h1 {
        font-size: 1.8rem;
    }
    
    .auth-header .logo {
        width: 60px;
        height: 60px;
        
    }

    .auth-header .logo2 {
        width: 60px;
        height: 60px;
    }
    
    .auth-form h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .input-group {
        margin-bottom: 20px;
    }
    
    .input-group input {
        padding: 12px 16px;
        font-size: 15px;
    }
}


/* Animation for form switching */
.auth-form-enter {
    animation: slideInRight 0.4s ease;
}

.auth-form-exit {
    animation: slideOutLeft 0.4s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* Social Login Buttons (for future use) */
.social-login {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.social-btn:hover {
    border-color: #bbb;
    background: #f9f9f9;
}

.social-btn.google {
    border-color: #db4437;
    color: #db4437;
}

.social-btn.google:hover {
    background: #db4437;
    color: white;
}

