body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: linear-gradient(135deg, #1b4f72 0%, #2e86c1 100%); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    margin: 0; 
}

.login-card { 
    background: #ffffff; 
    padding: 40px; 
    border-radius: 10px; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); 
    width: 100%; 
    max-width: 420px; 
    box-sizing: border-box;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.login-header h2 { 
    color: #1b4f72; 
    margin: 0; 
    font-size: 24px; 
    font-weight: 700;
}

.login-header p {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    color: #34495e; 
    font-weight: 600; 
    font-size: 14px;
}

.form-group input { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #d5dbdb; 
    border-radius: 6px; 
    box-sizing: border-box; 
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus { 
    outline: none; 
    border-color: #2e86c1; 
    box-shadow: 0 0 5px rgba(46, 134, 193, 0.3); 
}

.btn-submit { 
    width: 100%; 
    background: #1b4f72; 
    color: #ffffff; 
    border: none; 
    padding: 12px; 
    border-radius: 6px; 
    font-weight: bold; 
    cursor: pointer; 
    font-size: 16px; 
    transition: background 0.3s; 
    margin-top: 10px;
}

.btn-submit:hover { 
    background: #154360; 
}

.errorlist { 
    color: #e74c3c; 
    list-style: none; 
    padding: 10px; 
    font-size: 13px; 
    margin-bottom: 15px; 
    background: #fadbd8; 
    border-radius: 4px; 
    border-left: 4px solid #e74c3c;
}

.login-logo-img {
    max-width: 85px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.login-alerts-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.login-alert-box {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

.login-enlace-fila {
    text-align: center;
    margin-top: 18px;
}

.login-enlace {
    color: #1b4f72;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.login-enlace:hover,
.login-enlace:focus-visible {
    text-decoration: underline;
}

.login-ayuda {
    margin: 6px 0 14px 0;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
}

.login-ayuda ul {
    margin: 4px 0 0 0;
    padding-left: 18px;
}

.login-exito {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 14px;
}

.login-btn-enlace {
    display: block;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

/* ---------- Celulares ---------- */
@media (max-width: 480px) {
    body {
        padding: 16px;
        box-sizing: border-box;
    }

    .login-card {
        padding: 28px 22px;
        border-radius: 14px;
    }

    .login-header {
        margin-bottom: 22px;
    }

    /* 16px evita que iPhone haga zoom al tocar un campo; altura cómoda para el dedo */
    .form-group input {
        font-size: 16px;
        padding: 14px 12px;
    }

    .btn-submit {
        min-height: 48px;
        font-size: 16px;
    }

    .login-enlace {
        display: inline-block;
        padding: 10px 6px;
    }
}
