/* =============================================================
   MK 2FA Generator Styles
   matkhau.vn | Design System Synchronization (#fb3c59, Inter)
   ============================================================= */

.mk-2fa-card {
    max-width: 440px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    border: 1px solid #e2e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
    text-align: center;
}

.mk-2fa-card *,
.mk-2fa-card *::before,
.mk-2fa-card *::after {
    box-sizing: inherit;
}

.mk-2fa-title {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    letter-spacing: -0.2px;
}

.mk-2fa-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 22px 0;
    line-height: 1.5;
}

.mk-2fa-input-wrap {
    margin-bottom: 14px;
}

.mk-2fa-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
    text-align: center;
    background: #f8fafc;
}

.mk-2fa-input:focus {
    border-color: #fb3c59;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(251, 60, 89, 0.15);
}

.mk-2fa-btn-generate {
    width: 100%;
    padding: 12px 20px;
    background: #fb3c59;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(251, 60, 89, 0.3);
}

.mk-2fa-btn-generate:hover {
    background: #e02844;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(251, 60, 89, 0.4);
}

.mk-2fa-btn-generate:active {
    transform: translateY(0);
}

/* Result Box */
.mk-2fa-result-box {
    margin-top: 24px;
    padding: 18px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
}

.mk-2fa-code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mk-2fa-code {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #0f172a;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

.mk-2fa-code.has-code {
    color: #fb3c59;
}

.mk-2fa-btn-copy {
    padding: 8px 14px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mk-2fa-btn-copy:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.mk-2fa-msg-copy {
    color: #10b981;
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
    display: none;
}

.mk-2fa-countdown {
    margin-top: 10px;
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
}

.mk-2fa-countdown strong {
    color: #0f172a;
}

/* Share Link 2FA Section */
.mk-2fa-share-wrap {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mk-2fa-share-divider {
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    margin-bottom: 12px;
}

.mk-2fa-btn-copy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    max-width: 260px;
    padding: 9px 16px;
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.mk-2fa-btn-copy-link:hover {
    background: #f8fafc;
    border-color: #fb3c59;
    color: #fb3c59;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(251, 60, 89, 0.15);
}

.mk-2fa-btn-copy-link:active {
    transform: translateY(0);
}

.mk-2fa-btn-copy-link.copied {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
    color: #059669 !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2) !important;
}

.mk-2fa-link-svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.mk-2fa-btn-copy-link:hover .mk-2fa-link-svg {
    transform: rotate(-15deg);
}
