/* Adicione no início do arquivo login.css */
html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.login-container {
    width: 95%;
    margin: 20px auto;
    padding: 20px;
}

@media (min-width: 768px) {
    .login-container {
        width: 400px;
        margin: 40px auto;
    }
}


/* Estilos Gerais */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #3a3a3a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Logo e Nome */
.logo-container {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-logo {
    height: 150px;
    width: auto;
    margin-bottom: 15px;
}

.site-name {
    color: #2c3e50;
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    background: linear-gradient(to right, #3498db, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Formulário */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Botão de Login */
.login-btn {
    background: linear-gradient(to right, #3498db, #2ecc71);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.login-btn i {
    margin-right: 8px;
}

/* Lembrar de mim */
.remember-me {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    font-size: 14px;
}

.remember-me input {
    margin-right: 8px;
}

/* Rodapé */
.footer {
    margin-top: 30px;
    font-size: 12px;
    color: #7f8c8d;
}

/* Responsividade */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .site-logo {
        height: 120px;
    }
}

/* Adicione no final do arquivo */
.login-link, .register-link {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.login-link a, .register-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.login-link a:hover, .register-link a:hover {
    text-decoration: underline;
}

.login-btn i.fa-user-plus {
    margin-right: 8px;
}

/* Adicione no final do arquivo */
.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 15px 0;
    text-align: center;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Adicione ao final do arquivo login.css */

/* Animações */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake-animation {
    animation: shake 0.3s ease-in-out;
}

/* Botão de loading */
.fa-spinner {
    margin-right: 8px;
}

/* Responsividade para mensagens de erro */
@media (max-width: 480px) {
    .alert-error {
        font-size: 14px;
        padding: 8px 10px;
    }
    
    .error-message {
        font-size: 11px;
    }
}

.forgot-password {
    text-align: center;
    margin: 10px 0;
}

.forgot-password a {
    color: #4e54c8;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.age-check-label {
    font-size: 14px;
    line-height: 1.4;
}

input[type="date"] {
    padding: 12px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}