/* ===== Login Mercotab (prefijo mt_login_) ===== */
.mt_login_body { margin: 0; font-family: 'Poppins', sans-serif; background: #fff; color: #101227; }
.mt_login { display: flex; min-height: 100vh; }

/* Hero */
.mt_login_hero { position: relative; flex: 1 1 55%; background-size: inherit; background-position: center; color: #fff; }
.mt_login_hero::before { content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.15) 55%, rgba(54,55,54,.85) 100%); }
.mt_login_hero_inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column;
    justify-content: space-between; padding: 40px 56px; }
.mt_login_hero_logo { width: 165px; }
.mt_login_hero_text { max-width: 520px; }
.mt_login_hero_text h1, .mt_login_hero_text h2 { font-size: 34px; font-weight: 300; line-height: 1.2; margin: 14px 0 12px; }
.mt_login_hero_text h1 span, .mt_login_hero_text h2 span{ font-weight: 600;font-size: 40px;}
.mt_login_hero_text h1 span { color: #E23F1F; }
.mt_login_hero_text p { font-weight: 200; font-size: 16px; margin: 0; }
.mt_login_tag { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
    padding: 5px 14px; border: 1px solid #E23F1F; border-radius: 6px; background: rgba(226,63,31,.18); }
.mt_login_hero_foot { font-size: 13px; font-weight: 200; margin: 0; }

/* Panel */
.mt_login_panel { flex: 1 1 45%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 24px; background: #f9fafb; position: relative; }
.mt_login_box { width: 100%; max-width: 400px; background: #e5e5e5; border-radius: 12px; padding: 40px 34px;
    box-shadow: 0 10px 40px rgba(16,18,39,.08); border-top: 4px solid #E23F1F; }
.mt_login_logo_movil { display: none; width: 150px; margin: 0 auto 24px; }
.mt_login_title { font-size: 26px; font-weight: 500; margin: 0 0 6px; color: #101227; }
.mt_login_sub { font-size: 14px; font-weight: 300; color: #6c757d; margin: 0 0 26px; }

/* Campos (reutiliza .lp-findus .form-control / .mt_contact_form_label) */
.mt_login_field { position: relative; margin-bottom: 6px; }
.lp-findus .form-control{border: 3px solid rgb(124, 152, 167);}
.mt_login_form.lp-findus .form-control { height: 52px; padding-right: 44px; border-color: #D9D9D9; transition: border-color .25s; }
.mt_login_form.lp-findus .form-control:focus { border-color: #E23F1F; box-shadow: 0 0 0 3px rgba(226,63,31,.12); }
.mt_login_form.lp-findus .form-control.is-invalid { border-color: #E23F1F; background-image: none; }
.mt_login_form .mt_contact_form_label { pointer-events: none; top: 16px; font-size: 14px; }
.mt_login_form .form-control:focus + .mt_contact_form_label,
.mt_login_form .form-control:not(:placeholder-shown) + .mt_contact_form_label { top: 6px; font-size: 10px; color: #E23F1F; }
.mt_login_icon, .mt_login_eye { position: absolute; right: 14px; top: 17px; color: #7c98a7; font-size: 15px; }
.mt_login_eye { background: none; border: 0; padding: 0; cursor: pointer; top: 15px; }
.mt_login_eye:hover { color: #E23F1F; }

/* Botón */
.mt_login_btn { width: 100%; height: 50px; margin-top: 14px; border: 1px solid #E23F1F; border-radius: 6px;
    background: #E23F1F; color: #fff; font-family: inherit; font-size: 16px; font-weight: 500;
    display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 400ms ease-in-out; }
.mt_login_btn:hover { background: #c7341a; border-color: #c7341a; }
.mt_login_btn:disabled { opacity: .85; cursor: wait; }
.mt_login_spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff; border-radius: 50%; animation: mtLoginSpin .7s linear infinite; }
.mt_login_btn.is-loading .mt_login_spinner { display: inline-block; }
@keyframes mtLoginSpin { to { transform: rotate(360deg); } }

/* Alertas / extras */
.mt_login_alert { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #E23F1F;
    background: rgba(226,63,31,.08); border: 1px solid rgba(226,63,31,.3); border-radius: 8px; padding: 10px 14px; margin-bottom: 18px; }
.mt_login_help { margin-top: 22px; text-align: center; font-size: 13px; font-weight: 300; color: #6c757d; }
.mt_login_help a { color: #363736; font-weight: 500; text-decoration: none; margin-left: 4px; }
.mt_login_help a:hover { color: #E23F1F; }
.mt_login_atura { position: absolute; bottom: 18px; font-size: 12px; font-weight: 300; color: #6c757d; margin: 0; }
.mt_login_atura a { color: #363736; font-weight: 500; text-decoration: none; }

/* Responsive */
@media (max-width: 991px) {
    .mt_login_hero_inner { padding: 32px; }
    .mt_login_hero_text h1 { font-size: 30px; }
}
@media (max-width: 767px) {
    .mt_login { flex-direction: column; }
    .mt_login_hero_logo{ width: 195px; }
    .mt_login_hero { position: absolute; }
    .mt_login_hero_text{margin-top: 50px;}
    .mt_login_hero_text h1, .mt_login_hero_text h2 {font-size: 24px;margin: 6px 0 6px;}
    .mt_login_hero_text h1 span, .mt_login_hero_text h2 span {font-size: 30px;}
    
    .mt_login_error{ min-height: 5px!important; }
    .mt_login_sub{ margin: 0 0 14px; }

    .mobil_phone{ font-size: 28px!important;}
    .mt_login_hero_foot{display: none;}

    .mt_login_panel { min-height: 100vh; padding: 24px 16px 60px;
        background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.35)), url('../img/gallery/banner_01.png') center/cover; }
    
    .mt_login_box { padding: 32px 22px; margin-top: 250px;}
    
    .mt_login_logo_movil { display: block; }
    .mt_login_atura, .mt_login_atura a { color: #fff; }
}
.mt_login_help a, .mt_login_atura a { display: inline; vertical-align: baseline; }
/* Errores del validador JS */
.mt_login_error { display: block; min-height: 18px; margin: 2px 0 6px 2px; font-size: 12px; color: #E23F1F;
    opacity: 0; transform: translateY(-3px); transition: opacity .2s, transform .2s; }
.mt_login_error.is-visible { opacity: 1; transform: none; }
.mt_login_form.lp-findus .form-control { margin-bottom: 0; }
.mt_login_alert.d-none { display: none !important; }
.swal2-popup { font-family: 'Poppins', sans-serif !important; border-radius: 12px !important; }
.swal2-timer-progress-bar { background: rgba(226,63,31,.5) !important; }

/* ===== PC: foto de fondo a pantalla completa (no afecta móvil) ===== */
@media (min-width: 768px) {
    .mt_login { position: relative; }
    .mt_login_hero { position: absolute; inset: 0; background-size: cover !important; background-position: center; }
    .mt_login_hero_inner { width: 55%; box-sizing: border-box; min-height: 100vh; }
    .mt_login_panel { flex: 0 0 45%; margin-left: auto; background: transparent; z-index: 1; }
    .mt_login_atura, .mt_login_atura a { color: #fff; }

    /* Tarjeta gris translúcida */
    .mt_login_box { background: rgba(54,55,54,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
        box-shadow: 0 10px 40px rgba(0,0,0,.35); }
    .mt_login_title { color: #fff; }
    .mt_login_sub { color: rgba(255,255,255,.75); }
    .mt_login_error { color: #ff8a70; }
    .mt_login_alert { color: #ffb4a3; background: rgba(226,63,31,.18); border-color: rgba(226,63,31,.5); }

    /* Espaciado más fino entre campos */
    .mt_login_field { margin-bottom: 0; }
    .mt_login_error { min-height: 14px; line-height: 14px; font-size: 11px; margin: 3px 0 6px 2px; }
    .mt_login_btn { margin-top: 10px; }

    /* Campos y botón más compactos */
    .mt_login_form.lp-findus .form-control { height: 40px; padding: 16px 44px 2px 12px; border: 1px solid #D9D9D9; }
    .mt_login_form .mt_contact_form_label { top: 11px; font-size: 13px; line-height: 18px; margin: 0; }
    .mt_login_form .form-control:focus + .mt_contact_form_label,
    .mt_login_form .form-control:not(:placeholder-shown) + .mt_contact_form_label { top: 4px; font-size: 10px; line-height: 12px; }
    .mt_login_icon { top: 12px; }
    .mt_login_eye { top: 11px; }
    .mt_login_btn { height: 40px; }
    .mt_login_hero_logo { width: 210px; }
}