/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container principal */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

/* Card de login */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo e cabeçalho */
.logo-container {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(to right, #4e73df, #224abe);
    color: white;
    margin-bottom: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.logo-container h1 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 700;
}

.logo-container p {
    font-size: 14px;
    opacity: 0.9;
}

/* Formulário */
.login-form {
    padding: 0 30px 30px;
}

.form-group {
    margin-bottom: 20px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #4e73df;
    font-size: 16px;
}

input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

input:focus {
    outline: none;
    border-color: #4e73df;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.2);
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 16px;
}

/* Botão de login */
.login-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #4e73df, #224abe);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-button:hover {
    background: linear-gradient(to right, #3b5bdb, #1a3ab5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 115, 223, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

/* Alertas */
.alert {
    padding: 12px 20px;
    margin: 0 30px 20px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Rodapé */
.login-footer {
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: #6c757d;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

/* Responsividade */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .login-form {
        padding: 0 20px 20px;
    }
    
    .logo-container {
        padding: 20px 15px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
}