/* =========================================
   ESTILOS GENERALES LOGIN (Fondo Azul e Identidad)
   ========================================= */
:root {
    --brand-blue: #0A1B3D;
    --brand-red: #E31B23;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-card: rgba(255, 255, 255, 0.15);
    --text-white: #FFFFFF;
    --text-muted: #A0AEC0;
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: var(--brand-blue);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* =========================================
   CONTENEDOR CENTRADO Y TARJETA
   ========================================= */
.login-wrapper {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.login-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

/* Mensajes de error */
.alert-error {
    background-color: rgba(227, 27, 35, 0.2);
    border: 1px solid var(--brand-red);
    color: #FFB4B4;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-align: center;
}

/* =========================================
   FORMULARIO E INPUTS
   ========================================= */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-white);
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-card);
    border-radius: 4px;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: var(--transition-base);
    outline: none;
}

.login-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-form input:focus {
    border-color: var(--brand-red);
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 8px rgba(227, 27, 35, 0.3);
}

/* Toggle Contraseña */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: var(--transition-base);
}

.toggle-btn:hover {
    color: var(--text-white);
}

/* =========================================
   BOTONES Y ENLACES
   ========================================= */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.btn {
    flex: 1;
    padding: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--brand-red);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: #c4141b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 27, 35, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-card);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.login-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    border-top: 1px solid var(--border-card);
    padding-top: 20px;
}

.link-item {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition-base);
}

.link-item:hover {
    color: var(--text-white);
}

.link-highlight {
    color: var(--text-white);
    font-weight: 500;
}

.link-highlight:hover {
    color: var(--brand-red);
}

@media (max-width: 480px) {
    .form-actions {
        flex-direction: column;
    }
}