/**
 * File: assets/css/2fa.css
 * Vectiny 2FA styles — mirrors v-notif-settings card layout.
 */

/* ── Status banner ─────────────────────────────────────────────────────────── */
.v-2fa-status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}
.v-2fa-active   { background: #edfaf1; color: #1a7f4b; border: 1px solid #a7f0c2; }
.v-2fa-inactive { background: #fff8f0; color: #9a5c00; border: 1px solid #fcd9a0; }

/* ── Method radio rows ─────────────────────────────────────────────────────── */
.v-2fa-method-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.v-2fa-method-row:hover       { border-color: #b0b0b0; background: #fafafa; }
.v-method-selected            { border-color: var(--v-primary, #3a6ff7) !important; background: #f4f7ff !important; }

.v-2fa-method-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}
.v-2fa-method-label svg { margin-bottom: 2px; flex-shrink: 0; }
.v-2fa-method-label small { font-size: 12px; font-weight: 400; color: #666; }

/* Hide the native radio; show a custom circle */
.v-2fa-radio { display: none; }
.v-2fa-radio-visual {
    width: 18px; height: 18px; flex-shrink: 0;
    border: 2px solid #ccc; border-radius: 50%;
    margin-top: 2px; transition: border-color 0.2s, background 0.2s;
    position: relative;
}
.v-method-selected .v-2fa-radio-visual {
    border-color: var(--v-primary, #3a6ff7);
    background: var(--v-primary, #3a6ff7);
    box-shadow: inset 0 0 0 3px #fff;
}

/* ── QR code area ─────────────────────────────────────────────────────────── */
.v-2fa-qr-wrap {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 12px 0;
}
.v-2fa-manual-key {
    display: block;
    margin: 8px 0 16px;
    padding: 8px 12px;
    background: #f4f4f4;
    border-radius: 6px;
    font-size: 14px;
    letter-spacing: 2px;
    word-break: break-all;
}

/* ── 6-digit code boxes ───────────────────────────────────────────────────── */
.v-2fa-code-inputs {
    display: flex;
    gap: 10px;
    margin: 16px 0;
}
.v-code-digit {
    width: 46px; height: 54px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: border-color 0.15s;
}
.v-code-digit:focus { border-color: var(--v-primary, #3a6ff7); }

/* ── Backup codes ─────────────────────────────────────────────────────────── */
.v-backup-codes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 12px 0;
}
.v-backup-codes code {
    display: block;
    padding: 6px 10px;
    background: #f4f4f4;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    letter-spacing: 1px;
}

/* ── Danger button (disable) ─────────────────────────────────────────────── */
.v-btn-danger {
    padding: 10px 22px;
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.v-btn-danger:hover { background: #c62828; }

/* ── Challenge page ───────────────────────────────────────────────────────── */
.v-2fa-challenge-wrap {
    max-width: 460px;
    margin: 40px auto;
    padding: 32px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    text-align: center;
}
.v-2fa-challenge-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.v-2fa-challenge-desc  { font-size: 14px; color: #555; margin-bottom: 20px; }
.v-2fa-challenge-wrap .v-2fa-code-inputs { justify-content: center; }

.v-2fa-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ── Small secondary link button ─────────────────────────────────────────── */
.v-link-btn {
    background: none;
    border: none;
    color: var(--v-primary, #3a6ff7);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

/* ── Settings message ────────────────────────────────────────────────────── */
.v-settings-msg { margin-top: 10px; font-size: 13px; line-height: 1.5; }

@media (max-width: 480px) {
    .v-backup-codes { grid-template-columns: repeat(2, 1fr); }
    .v-2fa-code-inputs { gap: 6px; }
    .v-code-digit { width: 40px; height: 48px; font-size: 18px; }
}
