* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    color: #18324a;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.8), rgba(239,244,247,.95) 32%, rgba(231,239,243,1) 100%),
        #eef3f7;
    font-family: Arial, Helvetica, sans-serif;
}
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1.25fr) minmax(390px, .75fr);
}
.login-brand {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 56px clamp(42px, 7vw, 110px);
    color: #fff;
    background:
        linear-gradient(128deg, rgba(14, 74, 66, .88) 4%, rgba(15, 108, 86, .76) 48%, rgba(183, 153, 58, .48) 100%),
        linear-gradient(0deg, rgba(0,0,0,.18), rgba(0,0,0,.12)),
        url('../images/mpch-edificio-login.jpg') center/cover no-repeat;
}
.login-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(255,255,255,.20), transparent 34%),
        linear-gradient(90deg, rgba(255,255,255,.08), transparent 30%);
}
.login-brand::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 140px;
    background: linear-gradient(to top, rgba(0, 58, 44, .42), rgba(0, 58, 44, 0));
}
.brand-overlay { display: none; }
.brand-content { position: relative; z-index: 1; max-width: 720px; }
.brand-logo {
    width: 108px;
    height: 122px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0,0,0,.22));
}
.brand-kicker, .login-kicker {
    margin: 20px 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}
.brand-content h1 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.03;
    letter-spacing: -1.6px;
    text-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.brand-description {
    max-width: 590px;
    margin: 24px 0;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255,255,255,.92);
}
.brand-features { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-features span {
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(3px);
    font-size: 13px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 38px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.72), rgba(244,248,250,.95)),
        #f7fafc;
}
.login-card {
    width: 100%;
    max-width: 430px;
    padding: 8px 0;
}
.mobile-brand { display: none; }
.login-kicker { color: #08755c; margin-top: 0; }
.login-card h2 {
    margin: 0;
    color: #13304a;
    font-size: 38px;
    letter-spacing: -.8px;
}
.login-help { margin: 10px 0 28px; color: #60768a; line-height: 1.55; }
.login-card label {
    display: block;
    margin: 17px 0 8px;
    color: #27465f;
    font-size: 13px;
    font-weight: 700;
}
.input-wrap { position: relative; }
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 7px;
    background: #e5f3ef;
    color: #08755c;
    font-size: 11px;
    font-weight: 700;
}
.login-card input {
    width: 100%;
    height: 52px;
    padding: 0 15px 0 50px;
    border: 1px solid #cbd8e2;
    border-radius: 12px;
    outline: none;
    background: rgba(255,255,255,.92);
    color: #17334b;
    font-size: 15px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.login-card input:focus {
    border-color: #0b8064;
    box-shadow: 0 0 0 4px rgba(11,128,100,.11);
    background: #fff;
}
.login-card button {
    width: 100%;
    height: 54px;
    margin-top: 26px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #0c7a5c, #1b8f6e 65%, #b29b38);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .2px;
    box-shadow: 0 14px 28px rgba(8,117,92,.24);
}
.login-card button:hover { filter: brightness(1.04); }
.alert {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
}
.alert-error { border: 1px solid #f2c9c9; color: #8b2525; background: #fff2f2; }
.alert-success { border: 1px solid #bfe3d8; color: #17624f; background: #eefaf6; }
.support-note { margin: 28px 0 0; color: #7a8c9c; font-size: 12px; line-height: 1.55; text-align: center; }
.support-note span,
.support-note strong { display: block; }
.support-note strong { margin-top: 4px; color: #365d74; font-weight: 700; }
.support-note a { color: #087867; font-weight: 800; text-decoration: none; }
.support-note a:hover { text-decoration: underline; }
@media (max-width: 900px) {
    .login-page { grid-template-columns: 1fr; }
    .login-brand { display: none; }
    .login-panel { min-height: 100vh; padding: 28px 20px; }
    .mobile-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; color: #17435e; font-weight: 700; }
    .mobile-brand img { width: 44px; height: 50px; object-fit: contain; }
}

/* Acceso a Mesa de Partes Virtual */
.login-submit {
    display: block;
}
.access-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 22px 0 18px;
    color: #8a9aa7;
    font-size: 12px;
}
.access-divider::before,
.access-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, #d4e0e6);
}
.access-divider::after {
    background: linear-gradient(90deg, #d4e0e6, transparent);
}
.access-divider span {
    padding: 0 12px;
}
.virtual-desk-button {
    width: 100%;
    min-height: 68px;
    display: grid;
    grid-template-columns: 44px 1fr 22px;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 1px solid rgba(12, 122, 92, .25);
    border-radius: 14px;
    color: #15526a;
    background:
        linear-gradient(135deg, rgba(231, 248, 242, .95), rgba(239, 247, 251, .98)),
        #fff;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(24, 83, 99, .10);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.virtual-desk-button:hover {
    transform: translateY(-2px);
    border-color: rgba(12, 122, 92, .46);
    box-shadow: 0 14px 30px rgba(24, 83, 99, .16);
}
.virtual-desk-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #0c7a5c, #1b8f6e 68%, #b29b38);
    box-shadow: 0 8px 18px rgba(12, 122, 92, .22);
}
.virtual-desk-icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}
.virtual-desk-button strong {
    display: block;
    color: #17445c;
    font-size: 14px;
    line-height: 1.25;
}
.virtual-desk-button small {
    display: block;
    margin-top: 3px;
    color: #6f8391;
    font-size: 11px;
}
.virtual-desk-arrow {
    color: #0c7a5c;
    font-size: 22px;
    line-height: 1;
    transition: transform .18s ease;
}
.virtual-desk-button:hover .virtual-desk-arrow {
    transform: translateX(3px);
}
.alert-warning { border: 1px solid #ead79b; color: #7d5a00; background: #fff8df; }
