/* ============================================
   LOGIN - Banco de Venezuela
   Banner a pantalla completa + card flotante
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Nunito', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* ---------- Fondo: banner a pantalla completa ---------- */
body {
    background-image: url('/bdv/assets/img/banner.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ---------- Wrapper ---------- */
.login-wrapper {
    display: flex;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 40px 0 40px 60px;
}

/* ---------- Zona izquierda: card flotante ---------- */
.login-left {
    width: 420px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, .12);
    padding: 45px 45px 35px;
    position: relative;
    z-index: 10;
    margin-left: 40px;
}

.login-right {
    display: none;
}

/* ---------- Card interior ---------- */
.login-card {
    width: 100%;
    text-align: center;
}

/* ---------- Logo ---------- */
.login-logo {
    margin-bottom: 45px;
}

.login-logo img {
    width: 100%;
    max-width: 260px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ---------- Inputs (Material Fill) ---------- */
.form-group {
    position: relative;
    margin-bottom: 22px;
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 22px 14px 8px;
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
    color: #333;
    background: #f0f0f0;
    border: none;
    border-bottom: 2px solid #9e9e9e;
    border-radius: 4px 4px 0 0;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.form-group input:focus {
    border-bottom-color: #1976d2;
    background: #ececec;
}

.form-group label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #757575;
    font-size: 15px;
    pointer-events: none;
    transition: all .15s ease;
}

.form-group input:focus + label,
.form-group.has-value label {
    top: 8px;
    transform: none;
    font-size: 11px;
    color: #1976d2;
}

/* ---------- Botón Entrar ---------- */
.button-login-container {
    margin-top: 30px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.btn-login {
    min-width: 170px;
    padding: 12px 40px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .5px;
    color: #ffffff;
    background: #bdbdbd;
    border: none;
    border-radius: 3px;
    cursor: not-allowed;
    transition: background .2s ease, box-shadow .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

/* Botón habilitado → azul del banco */
.btn-login:not(:disabled) {
    background: #1976d2;
    cursor: pointer;
}

.btn-login:not(:disabled):hover {
    background: #1565c0;
    box-shadow: 0 3px 8px rgba(25, 118, 210, .4);
}

/* ---------- Loader: vive en public/assets/css/spinner.css ---------- */
/* El banco usa el mismo spinner de 5 barras grises en toda la aplicación,
   así que aquí se carga ese archivo en lugar de duplicar los estilos. */

/* ---------- Usuario mostrado en paso 2 ---------- */
.usuario-mostrado {
    font-size: 14px;
    color: #555;
    margin-bottom: 18px;
    text-align: left;
}

.usuario-mostrado b {
    color: #1976d2;
}

/* ---------- Volver ---------- */
.volver {
    text-align: center;
    margin-top: 8px;
}

.volver a {
    font-size: 13px;
    color: #1976d2;
    text-decoration: none;
}

.volver a:hover {
    text-decoration: underline;
}

/* ---------- Modal «Introduce tu contraseña» (mat-dialog del banco) ---------- */
.clave-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .32);
    padding: 16px;
}

.clave-modal.is-open { display: flex; }

/* .mat-dialog-container: 370 px, sombra de Material a 24 dp */
.clave-modal__caja {
    width: 370px;
    max-width: 100%;
    background: #fff;
    border-radius: 2px;
    padding: 24px;
    box-shadow: 0 11px 15px -7px rgba(0, 0, 0, .2),
                0 24px 38px 3px rgba(0, 0, 0, .14),
                0 9px 46px 8px rgba(0, 0, 0, .12);
}

/* .mat-dialog-title{font:500 20px/32px Nunito} + color primario del banco */
.clave-modal__titulo {
    font: 500 18px/26px 'Nunito', sans-serif;
    color: #0067b1;
    text-align: center;
    margin: 0 0 24px;
}

/* Campo tipo «filled» de Material, como el del banco */
.clave-campo {
    position: relative;
    background: #f5f5f5;
    border-radius: 4px 4px 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, .42);
    padding: 20px 46px 8px 12px;
    transition: border-color .15s ease;
}

.clave-campo label {
    position: absolute;
    top: 5px;
    left: 12px;
    font-size: 12px;
    color: rgba(0, 0, 0, .6);
}

.clave-campo input {
    width: 100%;
    border: 0;
    background: none;
    outline: none;
    font: 400 15px 'Nunito', sans-serif;
    color: rgba(0, 0, 0, .87);
}

/* Estado de error: el banco usa su color de aviso (#bb1b47) */
.clave-campo.is-error {
    border-bottom: 2px solid #bb1b47;
}

.clave-campo.is-error label { color: #bb1b47; }

.clave-ojo {
    position: absolute;
    right: 4px;
    top: 20px;
    width: 36px;
    height: 28px;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(0, 0, 0, .54);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.clave-ojo:hover { color: rgba(0, 0, 0, .87); }
.clave-ojo .material-icons { font-size: 20px; }

.clave-error {
    margin: 8px 0 0;
    font-size: 12px;
    color: #bb1b47;
}

.clave-modal__acciones {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 26px;
}

/* .mat-button (plano) y .mat-button.mat-accent (relleno) */
.clave-btn {
    font: 500 14px 'Nunito', sans-serif;
    border: 0;
    border-radius: 4px;
    padding: 0 16px;
    height: 36px;
    cursor: pointer;
    transition: background .2s ease;
}

.clave-btn--plano {
    background: none;
    color: #0067b1;
}

.clave-btn--plano:hover:not(:disabled) { background: rgba(0, 103, 177, .08); }

.clave-btn--plano:disabled {
    color: rgba(0, 0, 0, .26);
    cursor: default;
}

.clave-btn--acento {
    background: #0067b1;
    color: #fff;
}

.clave-btn--acento:hover { background: #005a9c; }

/* ---------- Error ---------- */
.login-error {
    background: #fdecea;
    color: #b71c1c;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: left;
    border-left: 3px solid #b71c1c;
}

/* ---------- Enlaces inferiores ---------- */
.login-links {
    font-size: 13px;
    line-height: 1.9;
    margin-top: 20px;
}

.login-links a {
    color: #1976d2;
    text-decoration: none;
    transition: color .15s ease;
}

.login-links a:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* El banco los escribe en negro y en negritas:
   .color-black{color:#000!important;font-weight:700} */
.login-links a,
.login-links a.login-olvido {
    color: #000;
    font-weight: 700;
}

.login-links a:hover,
.login-links a.login-olvido:hover {
    color: #000;
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    /* En el teléfono el banco no muestra el banner: fondo gris liso
       (medido en su captura: #fafafa) y la tarjeta al centro */
    body {
        background-image: none;
        background-color: #fafafa;
    }
    .login-wrapper {
        padding: 24px 16px;
        justify-content: center;
    }
    /* En el banco la tarjeta ocupa ~70% del ancho del teléfono, no el 100% */
    .login-left {
        margin-left: 0;
        width: 100%;
        max-width: 300px;
        padding: 30px 22px 24px;
        border-radius: 6px;
    }
    .login-logo {
        margin-bottom: 30px;
    }
    .login-logo img {
        max-width: 210px;
    }
    .login-links {
        font-size: 13px;
        line-height: 1.9;
    }
}

@media (max-width: 380px) {
    .login-left {
        max-width: 92%;
        padding: 26px 18px 22px;
    }
    .login-logo img {
        max-width: 180px;
    }
}