/* Login / Inicio — NO modifica header ni footer del master */
:root {
    --hp-blue: #3366cc;
    --hp-blue-d: #004884;
    --hp-border: #d0ddf0;
    --hp-muted: #64748b;
    --hp-text: #1e293b;
    --hp-font: 'Work Sans', 'Poppins', sans-serif;
}

body.login-inicio .ftco-navbar-light .navbar-brand img,
body.login-funcionarios .ftco-navbar-light .navbar-brand img {
    max-height: 40px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
}

/* ── LOGIN.ASPX: banner + bloque EBS (sin carousel) ── */
.lp-hero.hero-wrap {
    height: 520px !important;
    min-height: 0 !important;
}

.lp-hero .slider-text {
    height: 520px !important;
    min-height: 0 !important;
}

.lp-hero .overlay {
    opacity: 0.55 !important;
    background: #001a33 !important;
}

.lp-hero .subheading { color: #7dd3fc !important; font-weight: 700; }

.lp-hero h1 {
    color: #fff !important;
    font-family: var(--hp-font);
    font-weight: 800;
    font-size: 2.25rem !important;
}

.lp-hero-lead {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 540px;
}

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.lp-btn-primary {
    background: #fff;
    color: var(--hp-blue-d) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.lp-btn-outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.lp-ebs-block {
    padding: 2rem 0 2.5rem;
    background: #f7f9fc;
}

.lp-ebs-card {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 24px rgba(51, 102, 204, 0.08);
}

.lp-ebs-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.35rem;
    background: linear-gradient(135deg, var(--hp-blue) 0%, var(--hp-blue-d) 100%);
    color: #fff;
}

.lp-ebs-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff !important;
}

.lp-ebs-body {
    padding: 1.25rem 1.35rem;
    font-size: 14px;
    line-height: 1.75;
    color: var(--hp-text);
}

.lp-ebs-body span {
    font-size: 14px !important;
    color: var(--hp-text) !important;
    font-weight: 400 !important;
}

/* ── LOGIN1.ASPX: tarjeta dos paneles ── */
.auth-page {
    font-family: var(--hp-font);
    padding: 11rem 1.25rem 2.5rem;
    display: flex;
    justify-content: center;
    background: linear-gradient(160deg, #eef2fb 0%, #f8fafc 50%, #e8f0fe 100%);
    box-sizing: border-box;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 820px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.13);
    background: #fff;
    border: 1px solid var(--hp-border);
}

@media (max-width: 768px) {
    .auth-page { padding: 9rem 1rem 2rem; }
    .auth-shell { grid-template-columns: 1fr; max-width: 420px; }
}

.auth-brand {
    padding: 2rem 1.75rem;
    background: linear-gradient(155deg, #003d73 0%, var(--hp-blue) 50%, #5b8fd9 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo-wrap {
    display: inline-flex;
    background: #fff;
    padding: 7px 12px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.auth-logo {
    max-width: 120px;
    max-height: 40px;
    display: block;
    object-fit: contain;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cfe0ff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.auth-brand h1 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #fff !important;
}

.auth-brand p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.92);
}

.auth-back {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

.auth-form-panel {
    padding: 2rem 1.75rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-panel form { width: 100%; }

.auth-form-head { margin-bottom: 1.25rem; }

.auth-page .auth-form-head h2 {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: var(--hp-blue-d) !important;
    margin: 0 0 0.3rem !important;
}

.auth-page .auth-form-head p {
    font-size: 13px;
    color: var(--hp-muted);
    margin: 0;
}

.auth-field { margin-bottom: 1rem; }

.auth-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hp-muted);
    margin-bottom: 0.35rem;
}

.auth-input-wrap { position: relative; }

.auth-input-wrap .auth-ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hp-muted);
    pointer-events: none;
}

.auth-input-wrap input[type="text"],
.auth-input-wrap input[type="password"] {
    width: 100%;
    padding: 0.7rem 2.5rem 0.7rem 2.4rem;
    border: 1.5px solid var(--hp-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--hp-font);
    box-sizing: border-box;
}

.auth-input-wrap input:focus {
    outline: none;
    border-color: var(--hp-blue);
    box-shadow: 0 0 0 3px rgba(51, 102, 204, 0.15);
}

.auth-pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--hp-muted);
    cursor: pointer;
    padding: 4px;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
    font-size: 13px;
}

.auth-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    text-transform: none;
    color: var(--hp-muted);
}

.auth-forgot {
    color: var(--hp-blue) !important;
    font-weight: 600;
    text-decoration: none !important;
    font-size: 13px;
}

.auth-btn-wrap input[type="submit"] {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--hp-blue) 0%, var(--hp-blue-d) 100%);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--hp-font);
    cursor: pointer;
}

.auth-failure {
    display: none;
    margin-bottom: 0.85rem;
    padding: 0.6rem 0.8rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c !important;
    font-size: 13px;
    font-weight: 600;
}

.auth-failure:not(:empty) { display: block; }

.auth-secure-note {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--hp-border);
    font-size: 11px;
    color: var(--hp-muted);
    text-align: center;
}
