/* SIFAP-E — Acceso al sistema (estilo SIP / pantalla partida) */
html.login-page,
body.login-page {
    margin: 0;
    padding: 0;
    min-height: 100%;
    height: 100%;
    background: #f2f2f2;
    color: #222;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
}

body.login-page * {
    box-sizing: border-box;
}

body.login-page {
    background-image: none !important;
}

body.login-page form#form2,
body.login-page #pagina.login-shell {
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0;
    border: 0 !important;
    box-shadow: none !important;
    background: #f2f2f2 !important;
    display: flex;
    flex-direction: column;
}

.login-split {
    flex: 1 1 auto;
    display: flex;
    min-height: 0;
}

.login-brand-pane {
    width: 38%;
    min-width: 280px;
    background: #6b1c35;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 110px 32px 40px;
    text-align: center;
    position: relative;
}

.login-brand-logos {
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-brand-logos img {
    display: block;
    width: auto;
    max-width: 92%;
    height: auto;
    max-height: 88px;
}

.login-brand-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-wordmark {
    font-size: 92px;
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: #fff;
    margin: 0 0 22px;
    font-family: "Segoe UI", Arial, sans-serif;
}

.login-wordmark .i {
    position: relative;
    display: inline-block;
}

.login-wordmark .i:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.06em;
    width: 0.24em;
    height: 0.2em;
    margin-left: -0.12em;
    background: #6b1c35;
}

.login-wordmark .i:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.05em;
    width: 0.16em;
    height: 0.16em;
    margin-left: -0.08em;
    background: #d32f2f;
    border-radius: 50%;
}

.login-brand-pane p {
    margin: 0;
    max-width: 280px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.55;
    text-transform: uppercase;
    color: #fff;
}

.login-form-pane {
    flex: 1 1 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background-color: #f2f2f2;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='700' viewBox='0 0 900 700'><g fill='%23dedede' fill-opacity='0.55'><polygon points='0,0 420,0 180,520'/><polygon points='280,0 900,0 720,380'/><polygon points='520,80 900,80 900,700 640,700'/><polygon points='0,260 260,700 0,700'/></g><g fill='%23e8e8e8' fill-opacity='0.8'><polygon points='120,40 480,120 300,460'/><polygon points='560,200 900,260 780,700 420,620'/></g></svg>");
    background-size: cover;
    background-position: center;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 18px;
    padding: 36px 34px 30px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.login-card h1 {
    margin: 0 0 28px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.3;
}

body.login-page #Tbl_LogIn {
    width: 100%;
    border: 0;
    border-collapse: collapse;
}

body.login-page #Tbl_LogIn td {
    padding: 0;
    border: 0;
    vertical-align: top;
}

.login-field {
    margin-bottom: 16px;
}

body.login-page .login-field label,
body.login-page .login-field span {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    letter-spacing: 0;
}

body.login-page .login-field input[type="text"],
body.login-page .login-field input[type="password"],
body.login-page #txtUsuario,
body.login-page #txtPassword,
body.login-page #TxtFecInicio {
    display: block;
    width: 100% !important;
    height: 42px !important;
    padding: 0 14px !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #222 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-align: left !important;
    outline: none;
    box-shadow: none;
}

body.login-page #txtUsuario:focus,
body.login-page #txtPassword:focus,
body.login-page #TxtFecInicio:focus {
    border-color: #6b1c35 !important;
    box-shadow: 0 0 0 3px rgba(107, 28, 53, 0.12);
}

.login-date-wrap,
.login-pass-wrap {
    position: relative;
}

.login-pass-wrap:after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23e67e22' d='M17 9h-1V7a4 4 0 0 0-8 0v2H7a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2zm-7-2a2 2 0 1 1 4 0v2h-4V7zm3 9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
}

body.login-page #txtPassword {
    padding-right: 40px !important;
}

.login-date-wrap:after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b1c35' stroke-width='2'><rect x='3' y='5' width='18' height='16' rx='2'/><path d='M3 10h18M8 3v4M16 3v4'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
}

body.login-page #TxtFecInicio {
    padding-right: 40px !important;
    cursor: pointer;
}

body.login-page #btnLogin {
    display: block;
    width: 100% !important;
    height: 44px !important;
    margin-top: 8px;
    border: 0 !important;
    border-radius: 8px !important;
    background: #6b1c35 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    box-shadow: none;
}

body.login-page #btnLogin:hover {
    background: #58162c !important;
    color: #fff !important;
    font-size: 15px !important;
    border: 0 !important;
    box-shadow: none;
}

body.login-page #LblError {
    display: block;
    position: static !important;
    width: auto !important;
    margin: 14px 0 0 !important;
    padding: 10px 12px;
    min-height: 0;
    border-radius: 8px;
    background: #f8e8ea;
    color: #8a1a2e !important;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}

body.login-page #LblError:empty {
    display: none;
    padding: 0;
    margin: 0 !important;
    background: transparent;
}

.login-form-note {
    margin: 18px 0 0;
    text-align: center;
    font-size: 11px;
    color: #777;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.login-page #UpdateProgressLogin {
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow: hidden;
    background: rgba(34, 34, 34, 0.55);
}

body.login-page #UpdateProgressLogin > div {
    width: 280px;
    height: auto;
    top: 50%;
    left: 50%;
    margin: -20px 0 0 -140px;
    position: fixed;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
}

body.login-page #UpdateProgressLogin > div:before {
    content: "";
    display: block;
    width: 36px;
    height: 36px;
    margin: 0 auto 14px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: login-spin 0.8s linear infinite;
}

@keyframes login-spin {
    to { transform: rotate(360deg); }
}

.calendario .ajax__calendar_container {
    width: 190px;
    background-color: #fff;
    border: solid 1px #d0d0d0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.calendario .ajax__calendar_body {
    width: 180px;
    height: 150px;
    background-color: #fff;
    border: solid 1px #eee;
}

.calendario .ajax__calendar_header {
    background-color: #6b1c35;
    margin-bottom: 8px;
    border-radius: 6px;
}

.calendario .ajax__calendar_title {
    color: #fff;
    padding-top: 3px;
}

.calendario .ajax__calendar_next,
.calendario .ajax__calendar_prev {
    border: solid 2px #fff;
    background-color: #fff;
    border-radius: 18px;
}

.calendario .ajax__calendar_hover .ajax__calendar_next,
.calendario .ajax__calendar_hover .ajax__calendar_prev {
    border: solid 2px #eee;
    background-color: #fff;
}

.calendario .ajax__calendar_dayname {
    text-align: center;
    margin: 2px 0 4px;
    color: #333;
}

.calendario .ajax__calendar_day,
.calendario .ajax__calendar_month,
.calendario .ajax__calendar_year {
    margin: 1px;
    text-align: center;
    border: solid 1px #eee;
    color: #222;
    background-color: #f7f7f7;
}

.calendario .ajax__calendar_hover .ajax__calendar_day,
.calendario .ajax__calendar_hover .ajax__calendar_month,
.calendario .ajax__calendar_hover .ajax__calendar_year {
    color: #fff;
    font-weight: bold;
    background-color: #6b1c35;
    border: solid 1px #6b1c35;
}

.calendario .ajax__calendar_active .ajax__calendar_day,
.calendario .ajax__calendar_active .ajax__calendar_month,
.calendario .ajax__calendar_active .ajax__calendar_year {
    color: #fff;
    font-weight: bold;
    background-color: #333f48;
}

.calendario .ajax__calendar_today .ajax__calendar_day {
    color: #6b1c35;
    font-weight: bold;
    background-color: #fff;
}

.calendario .ajax__calendar_other,
.calendario .ajax__calendar_hover .ajax__calendar_today {
    color: #fff;
    font-weight: bold;
}

.ajax__calendar_days {
    background-color: #fff;
}

@media (max-width: 860px) {
    .login-split {
        flex-direction: column;
    }

    .login-brand-pane {
        width: 100%;
        min-width: 0;
        padding: 96px 20px 28px;
    }

    .login-brand-logos {
        top: 12px;
    }

    .login-brand-logos img {
        max-height: 64px;
    }

    .login-wordmark {
        font-size: 64px;
        margin-bottom: 12px;
    }

    .login-card {
        padding: 28px 20px 22px;
    }
}
