/* public/assets/css/auth.css */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #f5f5f5; /* Cinza bem clarinho */
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container principal com efeito de profundidade */
.login-container {
    width: 100%;
    max-width: 400px;
    perspective: 1000px; /* Para efeito 3D */
}

/* Card de login com borda e efeito de profundidade */
.login-card {
    background: #fff;
    border: 2px solid #000; /* Borda preta */
    border-radius: 8px;
    padding: 40px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2), /* Sombra mais intensa */
        0 0 0 1px rgba(0, 0, 0, 0.05); /* Borda interna sutil */
    transform: translateZ(20px); /* Efeito de elevação */
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    pointer-events: none;
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    font-size: 40px;
    color: #2563eb; /* Azul moderno */
    margin-bottom: 15px;
}

.login-header h1 {
    color: #000;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.login-header .subtitle {
    color: #666;
    font-size: 14px;
    font-weight: 400;
}

/* Formulário */
.login-form {
    margin-bottom: 20px;
}

/* Alertas */
.alert {
    background: #ff4444;
    color: white;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.alert i {
    font-size: 16px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Campos do formulário */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
    color: #000;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb; /* Azul no focus */
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* Campo de senha */
.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #2563eb; /* Azul no hover */
}

/* Botão */
.btn-login {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    background: #666;
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-login.loading {
    color: transparent;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.form-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.version {
    color: #666;
    font-size: 12px;
    font-weight: 500;
}

/* Credenciais de teste - REMOVIDAS conforme solicitado */

/* Responsivo */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        border-width: 1px;
    }
    
    body {
        padding: 15px;
        background: #fff;
    }
    
    .login-container {
        max-width: 100%;
    }
}

/* Estados de validação */
.form-group input.valid {
    border-color: #10b981;
}

.form-group input.invalid {
    border-color: #2b2a2a;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}