* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #1e293b;
    line-height: 1.6;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Container */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.login-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e3a627;
    box-shadow: 0 8px 25px rgba(227, 166, 39, 0.3);
    transition: all 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(227, 166, 39, 0.4);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #1e3a8a;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.welcome-text {
    color: #64748b;
    font-size: 1rem;
    font-weight: 400;
}

.divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, #e3a627, transparent);
    margin: 20px auto;
    width: 80px;
    border-radius: 2px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
}

.form-control:focus {
    outline: none;
    border-color: #e3a627;
    box-shadow: 0 0 0 3px rgba(227, 166, 39, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #94a3b8;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container .form-control {
    width: 100%;
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: background-color 0.2s;
    font-size: 1.1rem;
}

.password-toggle:hover {
    background: #f1f5f9;
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-top: -10px;
}

.forgot-password {
    color: #e3a627;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #d1941f;
    text-decoration: underline;
}

.login-btn {
    background: linear-gradient(135deg, #e3a627 0%, #d1941f 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 6px -1px rgba(227, 166, 39, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(227, 166, 39, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    color: #64748b;
    font-size: 0.95rem;
}

.link {
    color: #e3a627;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.link:hover {
    color: #d1941f;
    text-decoration: underline;
}

/* Estados de validação */
.form-control.invalid {
    border-color: #dc2626;
    background: #fef2f2;
}

.error-message {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}

/* Notificações */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 400px;
}

.notification.success {
    background: #10b981;
}

.notification.error {
    background: #dc2626;
}

.notification.info {
    background: #3b82f6;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsividade */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 25px;
        margin: 10px;
    }
    
    .login-header h1 {
        font-size: 1.7rem;
    }
    
    .login-logo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .login-container {
        padding: 25px 20px;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .welcome-text {
        font-size: 0.9rem;
    }
    
    .login-logo {
        width: 80px;
        height: 80px;
    }
    
    .form-control {
        padding: 12px;
    }
    
    .login-btn {
        padding: 14px;
        font-size: 1rem;
    }
}

/* Loading state */
.login-btn.loading {
    position: relative;
    color: transparent;
}

.login-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}