/* Pantallas de acceso: mismo diseño del ingreso de FirmaGob */
:root {
    --primary-color: #00a5c8;
    --blue-btn: #0b5edd;
    --blue-btn-hover: #0a58ca;
    --gray-btn: #6c757d;
    --gray-btn-hover: #5a6268;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: #0b6f87 url(../../imagenes/fondo-2025.png) no-repeat center center fixed;
    background-size: cover;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px 0;
}
.d-none { display: none !important; }
.notification {
    display: none; font-weight: 700; text-align: center; padding: 12px; border-radius: 8px;
    background-color: rgba(254, 242, 242, .92); color: #dc3545; margin-top: 15px;
    border: 1px solid rgba(220, 53, 69, .2); font-size: 13.5px;
}
.notification.info { background: rgba(236, 254, 255, .92); color: #0b6b85; border-color: rgba(0, 165, 200, .25); }
.notification.visible { display: block; }
.auth-container { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 15px; }
.auth-box {
    background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 14px; padding: 25px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .5);
}
.auth-header {
    position: relative; background: rgba(0, 165, 200, .95); padding: 20px; border-radius: 10px; text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .12); margin-bottom: 25px;
}
.auth-logo { display: block; height: 38px; margin: 0 auto 10px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); }
.auth-header h2 { color: #fff; font-size: 20px; font-weight: 700; margin: 0 0 5px; letter-spacing: .3px; text-shadow: 0 2px 4px rgba(0,0,0,.2); }
.auth-header p { color: rgba(255,255,255,.9); font-size: 13px; font-weight: 500; margin: 0; text-transform: uppercase; letter-spacing: .5px; }

.input-group { margin-bottom: 18px; display: block; }
.input-group label {
    font-size: 13px; font-weight: 700; color: #2c3e50; margin-bottom: 8px; display: inline-flex; align-items: center; gap: 6px;
    text-transform: uppercase; letter-spacing: .3px;
}
.input-group label i { color: #718096; font-size: 14px; }
.input-group input[type="text"], .input-group input[type="password"], .input-group input[type="email"] {
    width: 100%; border-radius: 8px; font-family: 'Montserrat', sans-serif; font-size: 14px; padding: 10px 12px;
    border: 1px solid #ced4da; background-color: rgba(255,255,255,.9); color: #333; font-weight: 500; transition: all .2s ease;
}
.input-group input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 2.5px rgba(0,165,200,.2); background-color: #fff; outline: none; }
.input-group small { display: block; font-size: 11.5px; color: #4a5568; margin-top: 6px; }
.password-wrapper { position: relative; width: 100%; }
.password-wrapper input { padding-right: 40px !important; }
.toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #a0aec0; background: none; border: 0; padding: 0; }
.toggle-password:hover { color: var(--primary-color); }
.options { margin-bottom: 25px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.forgot-password { font-size: 13px; font-weight: 600; color: #4a5568; text-decoration: none; transition: color .2s ease; }
.forgot-password:hover { color: var(--primary-color); text-decoration: underline; }
.buttons-row { display: flex; gap: 12px; width: 100%; }
.auth-btn-base {
    flex: 1; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 13.5px; padding: 11px 15px; border-radius: 8px; cursor: pointer;
    transition: all .2s ease; text-transform: uppercase; letter-spacing: .5px; box-shadow: 0 2px 5px rgba(0,0,0,.1);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.auth-btn-submit { background-color: var(--blue-btn); border: 1px solid var(--blue-btn); color: #fff; }
.auth-btn-submit:hover { background-color: var(--blue-btn-hover); border-color: var(--blue-btn-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(11,94,221,.35); }
.auth-btn-secondary { background-color: var(--gray-btn); border: 1px solid var(--gray-btn); color: #fff; }
.auth-btn-secondary:hover { background-color: var(--gray-btn-hover); }
.auth-btn-base:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.auth-btn-link {
    background: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); font-family: 'Montserrat', sans-serif;
    font-weight: 600; font-size: 12.5px; padding: 7px 14px; border-radius: 8px; cursor: pointer;
}
.auth-btn-link:disabled { opacity: .55; cursor: not-allowed; }

/* Doble autenticación */
.tfa-intro { font-size: 13.5px; color: #2c3e50; text-align: center; margin: 0 0 16px; font-weight: 500; }
.tfa-metodos { display: flex; gap: 12px; margin-bottom: 18px; }
.tfa-metodo {
    flex: 1; cursor: pointer; border: 2px solid #ced4da; border-radius: 10px; padding: 14px 10px; text-align: center;
    background: rgba(255,255,255,.9); transition: all .2s ease; user-select: none; font: inherit;
}
.tfa-metodo i { font-size: 26px; color: #718096; display: block; margin-bottom: 6px; }
.tfa-metodo span { font-size: 12.5px; font-weight: 700; color: #2c3e50; text-transform: uppercase; letter-spacing: .3px; }
.tfa-metodo small { display: block; font-size: 11px; color: #718096; margin-top: 4px; word-break: break-all; }
.tfa-metodo:hover { border-color: var(--primary-color); }
.tfa-metodo.activo { border-color: var(--primary-color); background: rgba(0,165,200,.08); box-shadow: 0 0 0 2.5px rgba(0,165,200,.2); }
.tfa-metodo.activo i { color: var(--primary-color); }
.tfa-metodo:disabled { cursor: not-allowed; opacity: .6; }
.tfa-metodo:disabled:hover { border-color: #ced4da; }
.tfa-panel {
    background: rgba(255,255,255,.75); border: 1px dashed #b8c4cf; border-radius: 10px; padding: 14px; margin-bottom: 18px;
    font-size: 13px; color: #2c3e50; text-align: center;
}
.tfa-panel p { margin: 0 0 8px; }
.tfa-panel p:last-child { margin-bottom: 0; }
.input-group input.tfa-codigo { text-align: center; font-size: 24px !important; letter-spacing: 10px; font-weight: 700 !important; }
.pie-acceso { text-align: center; margin-top: 16px; }
.pie-acceso a { color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.pie-acceso a:hover { text-decoration: underline; }
.texto-ayuda { font-size: 13px; color: #2c3e50; margin: 0 0 18px; line-height: 1.5; }
@media (max-width: 420px) { .tfa-metodos, .buttons-row { flex-direction: column; } }
