.bipeek-login-card {
    max-width: 450px;
    margin: 40px auto;
    background: #fff;
    padding: 30px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* ── Emerald: form-group genérico ── */
.bipeek-emerald-login .form-group {
    margin-bottom: 20px;
}

.bipeek-emerald-login label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #2563eb;
}

/* ── Fila DNI inline: input + botón Validar ── */
.bipeek-dni-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.bipeek-dni-row input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.bipeek-dni-row input[type="text"]:focus {
    border-color: #2563eb;
    outline: none;
}

.btn-validar {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn-validar:hover {
    background: #1a4fc4;
}

.btn-validar:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Input TOTP (ancho completo, fondo gris claro) ── */
.bipeek-emerald-login #bipeek-totp-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #f4f4f6;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.bipeek-emerald-login #bipeek-totp-input:focus {
    border-color: #2563eb;
    outline: none;
    background: #fff;
}

/* ── Compatibilidad con el selector antiguo (otros formularios) ── */
.bipeek-login-form .form-group {
    margin-bottom: 25px;
}

.bipeek-login-form label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.bipeek-login-form label .required {
    color: #e74c3c;
}

.bipeek-login-form input[type="text"],
.bipeek-login-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: #fdfdfd;
    transition: border-color 0.3s;
}

.bipeek-login-form input:focus {
    border-color: #5a67d8;
    outline: none;
}

.form-utils {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 30px;
}

.lost-pass {
    color: #7f8c8d;
    text-decoration: none;
}

.btn-acceso {
    width: 100%;
    background: #1a3a8f;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
}

.btn-acceso:hover {
    background: #142d72;
}

.btn-acceso:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.footer-link {
    text-align: center;
    margin-top: 25px;
    font-size: 15px;
    color: #5260b4;
}

.footer-link a {
    text-decoration: none;
    font-weight: 500;
}

.login-error-msg {
    background: #fdf2f2;
    color: #c0392b;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #c0392b;
}

/* ── Emerald login: mensajes de feedback ── */
.bipeek-emerald-msg {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid transparent;
}

.bipeek-msg-error {
    background: #fdf2f2;
    color: #c0392b;
    border-left-color: #c0392b;
}

.bipeek-msg-info {
    background: #eef4ff;
    color: #2563eb;
    border-left-color: #2563eb;
}

.bipeek-msg-success {
    background: #f0fdf4;
    color: #166534;
    border-left-color: #16a34a;
}

/* ── Emerald login: confirmación de usuario ── */
.bipeek-user-confirm {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9ff;
    border: 1px solid #dde3f8;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 22px;
    font-size: 15px;
    color: #333;
}

.bipeek-user-icon {
    font-size: 18px;
    line-height: 1;
}

/* ── Emerald login: enlace cambiar DNI ── */
.bipeek-change-dni {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
}

.bipeek-change-dni a {
    color: #7f8c8d;
    text-decoration: underline;
}

.bipeek-change-dni a:hover {
    color: #5260b4;
}

/* ── Campo DNI deshabilitado ── */
.bipeek-emerald-login input:disabled {
    background: #f4f4f4;
    color: #888;
    cursor: not-allowed;
    border-color: #ddd;
}