/* Estilos específicos para página de login */

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 50%, #075E54 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container do login */
.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header do login */
.login-header {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.login-logo {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-logo img {
    filter: brightness(0) invert(1);
    max-height: 60px;
    width: auto;
}

.login-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 1em;
    opacity: 0.9;
}

/* Formulário */
.login-form {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    border-color: #25D366;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
    background: white;
}

.form-group .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    margin-top: 12px;
}

/* Botão de login */
.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Lembrar-me */
.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

.remember-me label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0;
}

/* Mensagens de erro/sucesso */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Links extras */
.login-extras {
    text-align: center;
    margin-top: 20px;
}

.login-extras a {
    color: #128C7E;
    text-decoration: none;
    font-size: 0.9em;
}

.login-extras a:hover {
    text-decoration: underline;
}

/* Informações de usuários padrão */
.default-users {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.85em;
}

.default-users h4 {
    color: #128C7E;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.default-users .user-info {
    background: white;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 5px;
    border-left: 3px solid #25D366;
}

.default-users .user-info strong {
    color: #333;
}

/* Loading spinner */
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsivo */
@media (max-width: 480px) {
    .login-container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .login-header {
        padding: 30px 20px;
    }
    
    .login-form {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 1.5em;
    }
    
    .login-logo {
        font-size: 2.5em;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .login-container {
        background: #2c2c2c;
        color: #fff;
    }
    
    .form-group input {
        background: #3c3c3c;
        border-color: #555;
        color: #fff;
    }
    
    .form-group input:focus {
        background: #444;
    }
    
    .default-users {
        background: #3c3c3c;
    }
    
    .default-users .user-info {
        background: #444;
    }
}
