* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #fff;
    line-height: 1.5;
}

.login-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
}

.login-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.login-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.login-form {
    padding: 2rem;
    background: white;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s;
    background-color: #f8fafc;
    color: #2d3748;
}

.form-input:focus {
    outline: none;
    border-color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.3);
    background-color: white;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
}

.eye-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    z-index: 2;
}

.eye-icon:hover {
    color: #64748b;
}

/* Checkbox Personalizado */
.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-checkbox {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    margin-right: 0.5rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.remember-checkbox:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.remember-checkbox:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 0.75rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.remember-label {
    font-size: 0.875rem;
    color: #4a5568;
    cursor: pointer;
    flex-grow: 1;
}

/* Botões e Links */
.login-button {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.forgot-password {
    display: block;
    text-align: right;
    font-size: 0.8125rem;
    color: #667eea;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Rodapé */
.login-footer {
    text-align: center;
    font-size: 0.8125rem;
    color: #718096;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 1.5rem;
}

/* Modal Bootstrap Customizado */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-footer {
    border-top: none;
}

.modal-body .alert {
    display: flex;
    align-items: center;
}

.modal-body .bi {
    margin-right: 0.5rem;
}

/* Mensagens de Erro */
.error-message {
    background-color: #fff5f5;
    color: #e53e3e;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin: 0 2rem 1.5rem;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.error-icon {
    margin-right: 0.5rem;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    .login-card {
        border-radius: 0;
    }
    
    .login-header {
        padding: 1.5rem;
    }
    
    .login-form {
        padding: 1.5rem;
    }
}

@media (max-height: 600px) {
    .login-container {
        padding: 2rem 0;
    }
}