/* ==========================================================================
   TIER-1 MULTI-FACTOR AUTH: "TRY ANOTHER WAY" PORTAL
   ========================================================================== */

/* 1. Main Container: Zero Box Border (Matches Sign-In) */
.mcb-other-ways-wrapper {
    width: 100% !important;
    max-width: 440px !important;
    margin: 40px auto 60px auto !important;
    box-sizing: border-box !important;
}

.mcb-other-ways-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Header & Back Link */
.mcb-ow-nav-header {
    margin-bottom: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.mcb-ow-nav-header a.mcb-back-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-family: inherit !important;
    transition: color 0.15s ease !important;
}

.mcb-ow-nav-header a.mcb-back-link:hover {
    color: #7c3aed !important;
}

/* Security Icon Badge */
.mcb-ow-icon-badge {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: rgba(124, 58, 237, 0.08) !important;
    color: #7c3aed !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 16px !important;
}

.mcb-ow-icon-badge svg {
    stroke: currentColor !important;
}

.mcb-ow-title h3 {
    margin: 0 0 6px 0 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: inherit !important;
}

.mcb-ow-title p {
    margin: 0 0 24px 0 !important;
    font-size: 13.5px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
}

/* 2. Interactive Selection Grid */
.mcb-ow-options-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.mcb-ow-option-btn {
    width: 100% !important;
    text-align: left !important;
    border: 1px solid #d0d7de !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

.mcb-ow-option-left {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.mcb-ow-option-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

.mcb-ow-option-icon svg {
    stroke: currentColor !important;
}

.mcb-ow-option-text h4 {
    margin: 0 0 2px 0 !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: inherit !important;
    transition: color 0.2s ease !important;
}

.mcb-ow-option-text p {
    margin: 0 !important;
    font-size: 12.5px !important;
    color: #64748b !important;
}

.mcb-ow-chevron {
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
}

/* Hover States (Active Options) */
.mcb-ow-option-btn:hover:not(.disabled) {
    border-color: #7c3aed !important;
    background: rgba(124, 58, 237, 0.02) !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.08) !important;
    transform: translateY(-1px) !important;
}

.mcb-ow-option-btn:hover:not(.disabled) .mcb-ow-option-icon {
    background: #7c3aed !important;
    color: #ffffff !important;
}

.mcb-ow-option-btn:hover:not(.disabled) .mcb-ow-option-text h4 {
    color: #7c3aed !important;
}

.mcb-ow-option-btn:hover:not(.disabled) .mcb-ow-chevron {
    color: #7c3aed !important;
    transform: translateX(4px) !important;
}

/* Disabled States (Not Configured) */
.mcb-ow-option-btn.disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.mcb-ow-option-btn.disabled .mcb-ow-option-text h4 {
    text-decoration: line-through !important;
    color: #94a3b8 !important;
}

/* 3. Challenge Prompts (Hidden by Default) */
.mcb-challenge-view {
    display: none;
    animation: mcbFadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.mcb-challenge-view.active {
    display: block !important;
}

@keyframes mcbFadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Input Fields (Floating Label Style) */
.mcb-floating-group {
    position: relative !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

.mcb-floating-input {
    width: 100% !important;
    height: 54px !important;
    background: transparent !important;
    border: 1px solid #d0d7de !important;
    border-radius: 10px !important;
    padding: 20px 44px 6px 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    color: inherit !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.mcb-floating-input:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}

.mcb-floating-label {
    position: absolute !important;
    top: 17px !important;
    left: 14px !important;
    font-size: 13.5px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    pointer-events: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mcb-floating-input:focus ~ .mcb-floating-label,
.mcb-floating-input:not(:placeholder-shown) ~ .mcb-floating-label {
    top: 6px !important;
    font-size: 10.5px !important;
    color: #7c3aed !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Submit Button */
.mcb-btn-auth-submit {
    width: 100% !important;
    border-radius: 50px !important;
    background: #7c3aed !important;
    border: 1px solid #7c3aed !important;
    color: #ffffff !important;
    padding: 13px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25) !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.mcb-btn-auth-submit:hover:not(:disabled) {
    background: #6d28d9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4) !important;
}

.mcb-btn-auth-submit:disabled,
.mcb-btn-auth-submit.is-disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* Full-Width Alert Bar */
.mcb-auth-alert-bar {
    width: 100% !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    margin-bottom: 20px !important;
    display: none;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
}

.mcb-auth-alert-bar.show {
    display: flex !important;
}

.mcb-auth-alert-bar.error {
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid #ef4444 !important;
    color: #991b1b !important;
}

.mcb-auth-alert-bar.success {
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid #10b981 !important;
    color: #065f46 !important;
}

.mcb-alert-circle-close {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: 1px solid currentColor !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
}

@media screen and (max-width: 500px) {
    .mcb-other-ways-wrapper {
        margin: 20px auto 40px auto !important;
        padding: 0 16px !important;
    }
}