/* login-style.css - VERSÃO DEFINITIVA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e04000 0%, #ff6e40 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
}

.login-header {
    background: #e04000;
    padding: 30px 20px;
    text-align: center;
}

.logo-container {
    margin-bottom: 15px;
}

.logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.logo i {
    font-size: 40px;
    color: #e04000;
}

.login-header h1 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.login-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.login-body {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    line-height: 1.5;
}

/* CORREÇÃO CRÍTICA - ELIMINAR OUTLINE DUPLO */
.form-control:focus {
    border-color: #e04000 !important;
    background: white;
    box-shadow: 0 0 0 3px rgba(224, 64, 0, 0.1) !important;
    outline: none !important;
}

/* CORREÇÃO DOS ÍCONES - SIMPLES E EFETIVA */
.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
    pointer-events: none;
}

/* Ícone fica laranja quando o input está em foco */
.form-control:focus + .input-icon {
    color: #e04000;
}

.btn-login {
    background: #e04000;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    background: #c43700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(224, 64, 0, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.login-footer p {
    color: #6c757d;
    font-size: 12px;
        padding-bottom: 10px;
}

/* Estados de erro */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
    font-size: 14px;
}

.form-control.error {
    border-color: #dc3545;
}

/* Loading state */
.btn-login.loading {
    position: relative;
    color: transparent;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        margin: 10px;
    }
    
    .login-body {
        padding: 30px 20px;
    }
    
    .login-header {
        padding: 20px 15px;
    }
}