/* =========================================================
   BOMBA TARAPACÁ
   INTRANET - PORTADA DE ACCESO
   ========================================================= */

:root {
    --bt-blue: #0d3151;
    --bt-blue-dark: #082845;
    --bt-gold: #cba25b;
    --bt-white: #ffffff;
    --bt-card: #f7f8f9;
    --bt-text: #607080;
    --bt-border: #d9e0e6;
    --bt-footer-height: 108px;
    --bt-copperplate: "Copperplate Gothic Bold", "Copperplate Gothic", Copperplate, Georgia, serif;
}

* { box-sizing: border-box; }

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bt-blue-dark);
    color: var(--bt-blue);
}

.bt-login-shell {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
}

.bt-login-main {
    position: relative;
    min-height: 0;
    background-image: url("../img/login-bg.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.bt-login-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7,43,73,.78) 0%, rgba(7,43,73,.72) 45%, rgba(7,43,73,.77) 100%);
    z-index: 1;
}

.bt-login-container {
    position: relative;
    z-index: 2;
    width: min(1500px, calc(100% - 80px));
    height: 100%;
    min-height: inherit;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(520px, 1fr) minmax(440px, 520px);
    column-gap: clamp(70px, 8vw, 150px);
    align-items: center;
}

.bt-login-brand {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(42px, 6vh, 68px) 0 clamp(34px, 5vh, 58px);
}

.bt-brand-header {
    display: flex;
    align-items: center;
    gap: 42px;
}

.bt-brand-shield {
    flex: 0 0 132px;
    width: 132px;
}

.bt-brand-shield img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.bt-brand-identity {
    width: min(100%, 550px);
}

.bt-brand-identity h1,
.bt-brand-identity h2,
.bt-brand-motto {
    font-family: var(--bt-copperplate) !important;
}

.bt-brand-identity h1 {
    margin: 0;
    color: var(--bt-white);
    font-size: clamp(34px, 2.65vw, 46px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.bt-brand-identity h2 {
    margin: 11px 0 10px;
    color: var(--bt-gold);
    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 2.2px;
    white-space: nowrap;
}

.bt-brand-line {
    width: 100%;
    height: 2px;
    background: var(--bt-gold);
}

.bt-brand-motto {
    margin: 9px 0 0;
    color: var(--bt-white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 5px;
    white-space: nowrap;
}

.bt-brand-message {
    margin-left: 174px;
}

.bt-brand-message p {
    margin: 0;
    color: var(--bt-white);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(34px, 2.7vw, 43px);
    line-height: 1.08;
    font-weight: 750;
    letter-spacing: .3px;
}

.bt-brand-message span {
    display: block;
    width: 86px;
    height: 4px;
    margin-top: 17px;
    background: var(--bt-gold);
}

.bt-login-card {
    width: 100%;
    padding: 36px 52px 34px;
    background: var(--bt-card);
    border-radius: 15px;
    box-shadow: 0 18px 42px rgba(0,0,0,.16);
}

.bt-card-header { text-align: center; }

.bt-card-header h2 {
    margin: 0;
    color: var(--bt-blue);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
}

.bt-card-header p {
    margin: 12px 0 0;
    color: var(--bt-gold);
    font-size: 18px;
    font-weight: 700;
}

.bt-card-line {
    display: block;
    width: 64px;
    height: 3px;
    margin: 18px auto 0;
    background: var(--bt-gold);
}

.bt-login-form { margin-top: 34px; }

.bt-login-form h3 {
    margin: 0 0 16px;
    text-align: center;
    color: #697b8b;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 2px;
}

.bt-form-group { margin-bottom: 14px; }

.bt-form-group label {
    display: block;
    margin: 0 0 8px;
    color: var(--bt-blue);
    font-size: 14px;
    font-weight: 700;
}

.bt-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 52px;
    background: #f8fafb;
    border: 1px solid var(--bt-border);
    border-radius: 8px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.bt-input-wrapper:focus-within {
    border-color: var(--bt-gold);
    box-shadow: 0 0 0 3px rgba(203,162,91,.12);
}

.bt-input-wrapper input {
    width: 100%;
    height: 100%;
    padding: 0 50px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--bt-blue);
    font-family: inherit;
    font-size: 15px;
}

.bt-input-wrapper input::placeholder {
    color: #7d8d9b;
    opacity: 1;
}

.bt-input-icon {
    position: absolute;
    left: 20px;
    width: 16px;
    height: 18px;
    color: #728698;
    pointer-events: none;
}

.bt-user-icon::before {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    left: 5px;
    top: 1px;
    border: 1.7px solid currentColor;
    border-radius: 50%;
}

.bt-user-icon::after {
    content: "";
    position: absolute;
    width: 11px;
    height: 7px;
    left: 2.5px;
    bottom: 1px;
    border: 1.7px solid currentColor;
    border-radius: 7px 7px 2px 2px;
}

.bt-lock-icon::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 9px;
    left: 3px;
    top: 8px;
    background: currentColor;
    border-radius: 2px;
}

.bt-lock-icon::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    left: 4px;
    top: 1px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.bt-password-toggle {
    position: absolute;
    right: 15px;
    width: 32px;
    height: 32px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.bt-eye-icon {
    position: relative;
    width: 15px;
    height: 10px;
    border: 1.5px solid #718596;
    border-radius: 50% / 60%;
}

.bt-eye-icon::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #718596;
    border-radius: 50%;
}

.bt-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 3px 0 14px;
}

.bt-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bt-text);
    font-size: 14px;
    cursor: pointer;
}

.bt-remember input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--bt-blue);
}

.bt-forgot-password {
    color: var(--bt-gold);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.bt-forgot-password:hover { text-decoration: underline; }

.bt-login-button {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 6px;
    background: var(--bt-blue);
    color: var(--bt-white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(13,49,81,.18);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.bt-login-button:hover {
    background: #092b49;
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(13,49,81,.24);
}

.bt-login-footer {
    position: relative;
    min-height: var(--bt-footer-height);
    padding: 10px clamp(36px, 5vw, 78px);
    display: grid;
    grid-template-columns: minmax(350px, 1fr) minmax(650px, 1.6fr);
    align-items: center;
    background: var(--bt-gold);
    color: var(--bt-blue);
    border-top: 1px solid rgba(13,49,81,.35);
}

.bt-footer-info p {
    margin: 0;
    color: var(--bt-blue);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 650;
}

.bt-footer-small-line {
    display: block;
    width: 42px;
    height: 3px;
    margin: 7px 0;
    background: var(--bt-blue);
}

.bt-footer-copyright {
    font-size: 9px !important;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.bt-footer-actions {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.bt-footer-action {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: var(--bt-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-align: center;
}

.bt-footer-action + .bt-footer-action {
    border-left: 1px solid rgba(13,49,81,.45);
}

.bt-footer-icon {
    position: relative;
    display: block;
    width: 36px;
    height: 36px;
    color: var(--bt-blue);
}

.bt-footer-lock::before {
    content: "";
    position: absolute;
    width: 23px;
    height: 20px;
    left: 7px;
    top: 14px;
    background: currentColor;
    border-radius: 3px;
}

.bt-footer-lock::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    left: 11px;
    top: 2px;
    border: 4px solid currentColor;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
}

.bt-footer-users::before {
    content: "♟♟";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    font-family: Arial, sans-serif;
    font-size: 29px;
    font-weight: 900;
    letter-spacing: -9px;
    transform: translateX(-4px);
}

.bt-footer-support {
    border: 4px solid currentColor;
    border-radius: 50%;
}

.bt-footer-support::before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: currentColor;
    border-radius: 50%;
}

.bt-footer-support::after {
    content: "";
    position: absolute;
    inset: -9px;
    border: 4px dotted currentColor;
    border-radius: 50%;
}

/* =========================================================
   ESCRITORIO: AJUSTE AUTOMÁTICO A LA ALTURA DE PANTALLA
   Evita scroll y mantiene visible el footer completo.
   ========================================================= */

@media (min-width: 801px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .bt-login-shell {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .bt-login-main {
        min-height: 0;
        height: auto;
    }

    .bt-login-container {
        min-height: 0;
        height: 100%;
    }
}

@media (min-width: 801px) and (max-height: 820px) {
    :root {
        --bt-footer-height: 98px;
    }

    .bt-login-container {
        width: min(1460px, calc(100% - 64px));
    }

    .bt-login-brand {
        padding-top: 34px;
        padding-bottom: 28px;
    }

    .bt-brand-shield {
        flex-basis: 118px;
        width: 118px;
    }

    .bt-brand-header {
        gap: 34px;
    }

    .bt-brand-identity h1 {
        font-size: clamp(32px, 2.45vw, 42px);
    }

    .bt-brand-identity h2 {
        margin-top: 9px;
        margin-bottom: 9px;
        font-size: clamp(13px, 1vw, 16px);
    }

    .bt-brand-motto {
        margin-top: 10px;
        font-size: 12px;
        letter-spacing: 4px;
    }

    .bt-brand-message {
        margin-left: 152px;
    }

    .bt-brand-message p {
        font-size: clamp(31px, 2.45vw, 39px);
        line-height: 1.04;
    }

    .bt-brand-message span {
        margin-top: 14px;
    }

    .bt-login-card {
        padding: 30px 46px 28px;
    }

    .bt-card-header h2 {
        font-size: 28px;
    }

    .bt-card-header p {
        font-size: 17px;
    }

    .bt-card-line {
        margin-top: 15px;
    }

    .bt-login-form {
        margin-top: 27px;
    }

    .bt-login-form h3 {
        margin-bottom: 14px;
    }

    .bt-form-group {
        margin-bottom: 11px;
    }

    .bt-input-wrapper {
        height: 48px;
    }

    .bt-form-options {
        margin-bottom: 11px;
    }

    .bt-login-button {
        height: 48px;
    }

    .bt-login-footer {
        min-height: var(--bt-footer-height);
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .bt-footer-info p {
        font-size: 10px;
        line-height: 1.22;
    }

    .bt-footer-small-line {
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .bt-footer-copyright {
        font-size: 8px !important;
        letter-spacing: 1.4px;
        line-height: 1.2 !important;
    }

    .bt-footer-action {
        gap: 8px;
        font-size: 10px;
    }

    .bt-footer-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 1150px) {
    .bt-login-container {
        width: min(100% - 50px, 1000px);
        grid-template-columns: 1fr 440px;
        column-gap: 50px;
    }

    .bt-brand-header { gap: 30px; }

    .bt-brand-shield {
        flex-basis: 115px;
        width: 115px;
    }

    .bt-brand-identity h1 { font-size: 35px; }
    .bt-brand-identity h2 { font-size: 14px; }

    .bt-brand-motto {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .bt-brand-message { margin-left: 145px; }
    .bt-brand-message p { font-size: 34px; }
    .bt-login-footer { grid-template-columns: 1fr 1.7fr; }
}

@media (max-width: 800px) {
    .bt-login-shell { display: block; }

    .bt-login-main {
        min-height: auto;
        padding: 55px 0;
    }

    .bt-login-container {
        width: min(100% - 32px, 540px);
        display: flex;
        flex-direction: column;
        gap: 45px;
    }

    .bt-login-brand {
        width: 100%;
        padding: 0;
    }

    .bt-brand-header {
        justify-content: center;
        gap: 20px;
    }

    .bt-brand-shield {
        flex-basis: 90px;
        width: 90px;
    }

    .bt-brand-identity { width: auto; }

    .bt-brand-identity h1 {
        font-size: clamp(27px, 7vw, 38px);
        white-space: normal;
    }

    .bt-brand-identity h2 {
        font-size: 11px;
        letter-spacing: 1.2px;
        white-space: normal;
    }

    .bt-brand-motto {
        font-size: 10px;
        letter-spacing: 2px;
        white-space: normal;
    }

    .bt-brand-message { display: none; }

    .bt-login-card { padding: 40px 28px; }
    .bt-card-header h2 { font-size: 28px; }
    .bt-login-form { margin-top: 40px; }

    .bt-login-footer {
        padding: 25px 20px;
        display: block;
    }

    .bt-footer-info { text-align: center; }

    .bt-footer-small-line {
        margin-left: auto;
        margin-right: auto;
    }

    .bt-footer-actions {
        margin-top: 17px;
        min-height: 90px;
    }
}

@media (max-width: 520px) {
    .bt-brand-header {
        flex-direction: column;
        text-align: center;
    }

    .bt-brand-identity h2,
    .bt-brand-motto {
        text-align: center;
    }

    .bt-login-card { padding: 35px 20px; }

    .bt-form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .bt-footer-actions {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bt-footer-action { padding: 15px 0; }

    .bt-footer-action + .bt-footer-action {
        border-left: 0;
        border-top: 1px solid rgba(13,49,81,.35);
    }
}




/* =========================================================
   AJUSTE V5 - REFERENCIA PORTADA 3968
   Replica las proporciones aprobadas en la portada WordPress
   y las adapta al subdominio PHP limpio.
   ========================================================= */

@media (min-width: 1025px) {

    /* -----------------------------------------------------
       DISTRIBUCIÓN PRINCIPAL
       ----------------------------------------------------- */

    .bt-login-container {
        width: min(1500px, calc(100% - 80px));
        grid-template-columns: minmax(650px, 1fr) 470px;
        column-gap: clamp(70px, 7vw, 125px);
        align-items: center;
    }

    /* -----------------------------------------------------
       BLOQUE INSTITUCIONAL SUPERIOR
       ----------------------------------------------------- */

    .bt-login-brand {
        position: relative;
        height: 100%;
        padding: clamp(48px, 6vh, 68px) 0;
        justify-content: flex-start;
    }

    .bt-brand-header {
        width: 100%;
        max-width: 650px;
        gap: 40px;
        align-items: center;
    }

    .bt-brand-shield {
        flex: 0 0 180px;
        width: 180px;
    }

    .bt-brand-shield img {
        width: auto;
        max-width: 100%;
        height: 180px;
        max-height: 180px;
        object-fit: contain;
    }

    .bt-brand-identity {
        width: 100%;
        max-width: 650px;
    }

    .bt-brand-identity h1 {
        font-family: var(--bt-copperplate) !important;
        font-size: clamp(30px, 2.25vw, 43px);
        font-weight: 700;
        line-height: 1.08;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    .bt-brand-identity h2 {
        margin: 7px 0 0;
        font-family: var(--bt-copperplate) !important;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: 2px;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .bt-brand-line {
        margin-top: 10px;
        width: 100%;
        height: 2px;
    }

    .bt-brand-motto {
        width: 100%;
        margin: 7px 0 0;
        padding: 0;
        font-family: var(--bt-copperplate) !important;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.35;
        letter-spacing: clamp(2.5px, 0.30vw, 5px);
        word-spacing: 0;
        text-transform: uppercase;
        white-space: nowrap;
        text-align: justify;
        text-align-last: justify;
        text-justify: inter-character;
    }

    /* -----------------------------------------------------
       HERRAMIENTAS - CENTRADO VERTICAL
       Mismo eje horizontal aprobado en 3968
       ----------------------------------------------------- */

    .bt-brand-message {
        position: absolute;
        left: 220px;
        top: 54%;
        transform: translateY(-50%);
        width: calc(100% - 220px);
        max-width: 520px;
        margin: 0;
        padding: 0;
    }

    .bt-brand-message p {
        margin: 0;
        font-family:
            system-ui,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            sans-serif;
        font-size: 44px;
        font-weight: 650;
        line-height: 1.08;
        letter-spacing: 1px;
        text-transform: uppercase;
        text-align: left;
        color: #ffffff;
    }

    .bt-brand-message span {
        width: 78px;
        height: 4px;
        margin-top: 22px;
        background: var(--bt-gold);
    }

    /* -----------------------------------------------------
       TARJETA DE ACCESO
       Ancho original 3968 = 470 px.
       Se aumenta la ALTURA, no el ancho.
       ----------------------------------------------------- */

    .bt-login-card {
        width: 470px;
        max-width: 470px;
        min-height: 548px;
        margin: 0 auto;
        padding: 46px 48px 42px;

        display: flex;
        flex-direction: column;
        justify-content: flex-start;

        align-self: center;
        justify-self: center;

        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.78);
        border-radius: 14px;

        box-shadow:
            0 22px 55px rgba(0, 20, 42, 0.30);

        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    /* ACCESO INTRANET */
    .bt-card-header h2 {
        margin: 0;
        padding: 0;
        color: var(--bt-blue);
        font-size: 31px;
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: 0.5px;
        text-align: center;
        text-transform: uppercase;
    }

    /* Sistema BT versión 2.0 */
    .bt-card-header p {
        margin: 10px 0 0;
        padding: 0;
        color: var(--bt-gold);
        font-size: 18px;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: 0.35px;
        text-align: center;
    }

    .bt-card-line {
        width: 58px;
        height: 3px;
        margin: 22px auto 0;
        background: var(--bt-gold);
    }

    /* -----------------------------------------------------
       FORMULARIO - PROPORCIONES 3968
       ----------------------------------------------------- */

    .bt-login-form {
        margin-top: 24px;
    }

    .bt-login-form h3 {
        margin: 0 0 20px;
        padding: 0;
        color: #607080;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.35;
        letter-spacing: 2px;
        text-align: center;
        text-transform: uppercase;
    }

    .bt-form-group {
        width: 100%;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0;
    }

    .bt-form-group label {
        width: 100%;
        margin: 0 0 7px;
        padding: 0;
        color: #405872;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.35;
        text-align: left;
    }

    .bt-input-wrapper {
        width: 100%;
        height: 50px;
        min-height: 50px;
        margin: 0 0 14px;
        padding: 0 15px;

        display: flex;
        align-items: center;

        background: #f7f9fb;
        border: 1px solid #d6dee6;
        border-radius: 7px;
        box-shadow: none;
    }

    .bt-input-wrapper:hover {
        border-color: var(--bt-gold);
        background: #ffffff;
    }

    .bt-input-wrapper input {
        height: 100%;
        padding: 0 34px 0 42px;
        color: #405872;
        font-size: 14px;
        line-height: 1;
    }

    .bt-input-icon {
        left: 15px;
    }

    .bt-password-toggle {
        right: 10px;
    }

    .bt-form-options {
        width: 100%;
        max-width: 360px;
        margin: 2px auto 14px;
        padding: 0;

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .bt-remember {
        gap: 7px;
        color: #405872;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.2;
        white-space: nowrap;
    }

    .bt-remember input {
        width: 16px;
        height: 16px;
        accent-color: var(--bt-gold);
    }

    .bt-forgot-password {
        margin-left: auto;
        color: var(--bt-gold);
        font-size: 13px;
        font-weight: 500;
        line-height: 1.2;
        white-space: nowrap;
        text-align: right;
    }

    .bt-login-button {
        width: 100%;
        max-width: 360px;
        min-height: 52px;
        height: 52px;
        margin: 0 auto;
        padding: 0 20px;

        display: flex;
        align-items: center;
        justify-content: center;

        border-radius: 6px;
        background: var(--bt-blue);
        color: #ffffff;

        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.02em;

        box-shadow:
            0 7px 18px rgba(13, 49, 81, 0.18);
    }
}

/* =========================================================
   AJUSTE PARA PANTALLAS DE ESCRITORIO CON MENOR ALTURA
   Conserva la composición y evita scroll.
   ========================================================= */

@media (min-width: 1025px) and (max-height: 820px) {

    .bt-login-brand {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .bt-brand-shield {
        flex-basis: 150px;
        width: 150px;
    }

    .bt-brand-shield img {
        height: 150px;
        max-height: 150px;
    }

    .bt-brand-message {
        left: 190px;
        width: calc(100% - 190px);
        top: 55%;
    }

    .bt-brand-message p {
        font-size: 39px;
    }

    .bt-login-card {
        width: 470px;
        max-width: 470px;
        min-height: 520px;
        padding-top: 38px;
        padding-bottom: 34px;
    }

    .bt-login-form {
        margin-top: 20px;
    }
}

/* =========================================================
   FIN AJUSTE V5 - REFERENCIA PORTADA 3968
   ========================================================= */






/* =========================================================
   AJUSTE V8 - CANDADOS SEPARADOS
   Evita mezcla entre el candado del formulario y el footer.
   Ambos usan el mismo SVG, pero con selectores independientes.
   ========================================================= */

/* ---------------------------------------------------------
   1. RESETEO GENERAL DE LOS PSEUDOELEMENTOS DE CANDADO
   --------------------------------------------------------- */

.bt-lock-icon::before,
.bt-lock-icon::after,
.bt-footer-lock::before,
.bt-footer-lock::after {
    content: none !important;
    display: none !important;
}

/* ---------------------------------------------------------
   2. CANDADO EXCLUSIVO DEL CAMPO CONTRASEÑA
   --------------------------------------------------------- */

.bt-input-wrapper > .bt-lock-icon {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;

    width: 15px !important;
    height: 17px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    transform: translateY(-50%) !important;

    background-color: transparent !important;
    background-image: url("../icons/lock-solid-full.svg") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 15px 17px !important;

    border: 0 !important;
    border-radius: 0 !important;

    font-size: 0 !important;
    line-height: 0 !important;

    opacity: 0.62;
    pointer-events: none;

    flex: none !important;
}

/* Espacio reservado exclusivamente para el candado del password */
.bt-input-wrapper input[type="password"] {
    padding-left: 44px !important;
}

/* ---------------------------------------------------------
   3. CANDADO EXCLUSIVO DEL FOOTER
   --------------------------------------------------------- */

.bt-footer-action > .bt-footer-lock {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;

    width: 30px !important;
    height: 34px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    transform: none !important;

    background-color: transparent !important;
    background-image: url("../icons/lock-solid-full.svg") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;

    border: 0 !important;
    border-radius: 0 !important;

    font-size: 0 !important;
    line-height: 0 !important;

    opacity: 1;

    flex: 0 0 34px !important;
}

/* ---------------------------------------------------------
   4. AIRE INTERNO DE LA TARJETA
   Mantiene la altura aprobada.
   --------------------------------------------------------- */

@media (min-width: 1025px) {

    .bt-login-card {
        width: 470px;
        max-width: 470px;
        min-height: 548px;
        padding: 46px 48px 42px;
    }

    .bt-card-header p {
        margin-top: 12px;
    }

    .bt-card-line {
        margin-top: 24px;
    }

    .bt-login-form {
        margin-top: 31px;
    }

    .bt-login-form h3 {
        margin-bottom: 24px;
    }

    .bt-form-group label {
        margin-bottom: 9px;
    }

    .bt-input-wrapper {
        height: 50px;
        min-height: 50px;
        margin-bottom: 18px;
    }

    .bt-form-options {
        margin-top: 4px;
        margin-bottom: 18px;
    }

    .bt-login-button {
        height: 52px;
        min-height: 52px;
    }
}

/* ---------------------------------------------------------
   5. PANTALLAS DE MENOR ALTURA
   --------------------------------------------------------- */

@media (min-width: 1025px) and (max-height: 820px) {

    .bt-login-card {
        width: 470px;
        max-width: 470px;
        min-height: 520px;
        padding: 36px 48px 32px;
    }

    .bt-card-header p {
        margin-top: 9px;
    }

    .bt-card-line {
        margin-top: 19px;
    }

    .bt-login-form {
        margin-top: 22px;
    }

    .bt-login-form h3 {
        margin-bottom: 19px;
    }

    .bt-input-wrapper {
        margin-bottom: 14px;
    }

    .bt-form-options {
        margin-bottom: 14px;
    }
}

/* ---------------------------------------------------------
   6. TABLET / MÓVIL
   --------------------------------------------------------- */

@media (max-width: 1024px) {

    .bt-input-wrapper > .bt-lock-icon {
        width: 15px !important;
        height: 17px !important;
        background-size: 15px 17px !important;
    }

    .bt-footer-action > .bt-footer-lock {
        width: 28px !important;
        height: 32px !important;
        flex-basis: 32px !important;
    }
}

/* =========================================================
   FIN AJUSTE V8
   ========================================================= */


/* =========================================================
   AJUSTE V9 - COLOR INSTITUCIONAL DE LOS CANDADOS
   Azul Bomba Tarapacá: #0D3151
   ========================================================= */

/* Candado del campo contraseña */
.bt-input-wrapper > .bt-lock-icon {
    background-image: none !important;
    background-color: var(--bt-blue) !important;

    -webkit-mask-image: url("../icons/lock-solid-full.svg");
    mask-image: url("../icons/lock-solid-full.svg");

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: contain;
    mask-size: contain;

    opacity: 0.72;
}

/* Candado del footer - USO SEGURO */
.bt-footer-action > .bt-footer-lock {
    background-image: none !important;
    background-color: var(--bt-blue) !important;

    -webkit-mask-image: url("../icons/lock-solid-full.svg");
    mask-image: url("../icons/lock-solid-full.svg");

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: contain;
    mask-size: contain;

    opacity: 1;
}

/* =========================================================
   FIN AJUSTE V9
   ========================================================= */

