/* ==========================================================================
   TIER-1 WEBAUTHN PASSKEY ENGINE: WINDOWS HELLO & FULL-WIDTH ALERT BAR
   ========================================================================== */

.mcb-passkey-create-container {
    width: 100% !important;
    position: relative !important;
}

/* 1. Header Navigation */
.mcb-pkg-nav-header {
    margin-bottom: 18px !important;
}

.mcb-pkg-nav-header a.mcb-back-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #7c3aed !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-family: inherit !important;
}

.mcb-pkg-nav-header a.mcb-back-link:hover {
    text-decoration: underline !important;
}

/* 2. FULL-WIDTH TOP-CLASS ALERT NOTIFICATION BAR (WITH CIRCULAR X CLOSE) */
.mcb-fullwidth-alert-bar {
    width: 100% !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    margin-bottom: 22px !important;
    display: none;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    animation: mcbAlertSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.mcb-fullwidth-alert-bar.show {
    display: flex !important;
}

@keyframes mcbAlertSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Alert Themes */
.mcb-fullwidth-alert-bar.success {
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid #10b981 !important;
    color: #065f46 !important;
}

.mcb-fullwidth-alert-bar.error {
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid #ef4444 !important;
    color: #991b1b !important;
}

.mcb-fullwidth-alert-bar.info {
    background: rgba(124, 58, 237, 0.08) !important;
    border: 1px solid #7c3aed !important;
    color: #5b21b6 !important;
}

.mcb-alert-content-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
}

.mcb-alert-content-left svg {
    stroke: currentColor !important;
    flex-shrink: 0 !important;
}

/* Circular X Close Button on Alert */
.mcb-alert-circle-close {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: 1px solid currentColor !important;
    color: inherit !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    opacity: 0.7 !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.mcb-alert-circle-close:hover {
    opacity: 1 !important;
    transform: scale(1.08) !important;
}

.mcb-alert-circle-close svg {
    stroke: currentColor !important;
}

/* 3. Main Enrollment Card */
.mcb-passkey-enroll-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 28px 32px !important;
    background: transparent !important;
    box-sizing: border-box !important;
    margin-bottom: 24px !important;
}

.mcb-pkg-hero-row {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    padding-bottom: 22px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 24px !important;
}

.mcb-pkg-icon-large {
    width: 54px !important;
    height: 54px !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;
    flex-shrink: 0 !important;
}

.mcb-pkg-icon-large svg {
    stroke: #7c3aed !important;
}

.mcb-pkg-hero-details h3 {
    margin: 0 0 4px 0 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: inherit !important;
}

.mcb-pkg-hero-details p {
    margin: 0 !important;
    font-size: 13.5px !important;
    color: #64748b !important;
}

/* 4. Form Input Elements */
.mcb-form-group {
    margin-bottom: 24px !important;
}

.mcb-form-label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: inherit !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.mcb-input-text {
    width: 100% !important;
    max-width: 540px !important;
    background: transparent !important;
    border: 1px solid rgba(148, 163, 184, 0.4) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: inherit !important;
    font-family: inherit !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.mcb-input-text:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}

/* 5. Credential Types Grid */
.mcb-credential-types-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 14px !important;
    margin-bottom: 28px !important;
}

.mcb-cred-type-box {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 18px 18px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    position: relative !important;
    background: transparent !important;
}

.mcb-cred-type-box:hover {
    border-color: #7c3aed !important;
}

.mcb-cred-type-box.selected {
    border: 2px solid #7c3aed !important;
    background: rgba(124, 58, 237, 0.03) !important;
}

.mcb-cred-type-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.mcb-cred-type-top svg {
    stroke: #7c3aed !important;
}

.mcb-cred-radio-dot {
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    border: 2px solid #cbd5e1 !important;
    transition: all 0.15s ease !important;
}

.mcb-cred-type-box.selected .mcb-cred-radio-dot {
    border-color: #7c3aed !important;
    background: #7c3aed !important;
    box-shadow: inset 0 0 0 3px #ffffff !important;
}

.mcb-cred-title {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: inherit !important;
}

.mcb-cred-desc {
    font-size: 12.5px !important;
    color: #64748b !important;
    line-height: 1.4 !important;
}

/* 6. Primary Action Button */
.mcb-btn-register-action {
    border-radius: 50px !important;
    background: #7c3aed !important;
    border: 1px solid #7c3aed !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mcb-btn-register-action:hover {
    background: #6d28d9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45) !important;
}

.mcb-btn-register-action svg {
    stroke: #ffffff !important;
    transition: transform 0.2s ease !important;
}

.mcb-btn-register-action:hover svg {
    transform: translateX(3px) !important;
}

/* 7. Explainer Card */
.mcb-pkg-fido-notice {
    border: 1px dashed rgba(148, 163, 184, 0.6) !important;
    border-radius: 12px !important;
    padding: 18px 22px !important;
    background: transparent !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
}

.mcb-pkg-fido-notice svg {
    stroke: #7c3aed !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

.mcb-pkg-fido-notice p {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #475569 !important;
}

@media screen and (max-width: 850px) {
    .mcb-pkg-hero-row {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .mcb-credential-types-grid {
        grid-template-columns: 1fr !important;
    }

    .mcb-btn-register-action {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
}