html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
}
body:has(.admin-wrapper) {
  margin-bottom: 0;
}



.mfa-container {
    min-height: calc(100vh - 120px);
    overflow-x: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.mfa-error-alert {
    max-width: 420px;
    width: 100%;
    margin: 0 auto 10px;
    border-radius: 12px;
    padding: 10px 10px;
    text-align: center;
    box-sizing: border-box;
    word-wrap: break-word;
}

.mfa-card {
    max-width: 420px;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    margin: 0 auto;
    box-sizing: border-box;
}

.mfa-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.mfa-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 24px;
}

.mfa-section-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.mfa-channel-option {
    display: flex;
    align-items: stretch;
    padding: 0;
    border-radius: 12px;
    border: 1px solid #e0e3eb;
    background-color: #f8f9ff;
    cursor: pointer;
    margin-bottom: 8px;
}

    .mfa-channel-option.active {
        border-color: #4b6bfb;
        background-color: #eef1ff;
    }

.mfa-channel-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mfa-channel-option input.mfa-channel-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mfa-channel-inner {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    width: 100%;
}

.mfa-channel-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    flex-shrink: 0;
}

.mfa-channel-content {
    display: flex;
    flex-direction: column;
}

.mfa-channel-type {
    font-size: 0.95rem;
    font-weight: 500;
}

.mfa-channel-destination {
    font-size: 0.85rem;
    color: #6c757d;
}

.mfa-input-label {
    font-weight: 500;
    margin-bottom: 6px;
}

/* Red asterisk after required field labels (use class label-required on the label) */
.label-required::after {
    content: " *";
    color: #dc3545;
}

/* intl-tel-input: make phone widget full width like other form fields */
.intl-tel-input-fullwidth .iti {
    width: 100% !important;
}
.intl-tel-input-fullwidth .iti input {
    width: 100% !important;
    box-sizing: border-box;
}

.mfa-otp-input {
    letter-spacing: 0.3em;
    text-align: center;
    font-size: 1.1rem;
}

.mfa-verify-btn {
    padding: 10px 16px;
    font-weight: 500;
}

.mfa-send-btn {
    width: 100%;
}

.mfa-resend-link {
    font-size: 0.9rem;
    text-decoration: none;
}

    .mfa-resend-link:hover {
        text-decoration: underline;
    }

.mfa-meta-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mfa-meta-item {
    flex: 1;
    background: #f9fafb;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    text-align: center;
}

.mfa-meta-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.mfa-meta-value {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.2rem;
}

.mfa-support {
    font-size: 0.85rem;
    color: #6c757d;
}

.mfa-support-link {
    margin-left: 4px;
    font-weight: 500;
}
