feat: MFA/2FA, OTP audit logs, KYC + client/user enhancements

- Access Control module: SMS/Email/TOTP/Hardware-token MFA factor management
- OTP Audit Logs module under Admin menu (list + detail) with 401/403 handling
- Two-factor authentication login flow updates
- Client KYC, India address, family-members, ckyc, nominee enhancements
- New shared KYC helpers (kyc-proof-types, kyc-upload-helper.service)
- User create/edit/view enhancements
- Shell navigation: OTP Audit Logs entry under real Admin menu
This commit is contained in:
Aditya
2026-05-10 13:24:48 +05:30
parent 2d4fb4237e
commit 3b752dc6ae
56 changed files with 7741 additions and 599 deletions
@@ -214,6 +214,179 @@
}
}
/* ===================== KYC Verification status ===================== */
.kyc-status-card {
border: 1px solid #e2e8f0;
border-radius: 14px;
background: #fff;
margin-bottom: 18px;
overflow: hidden;
box-shadow: 0 1px 3px rgb(15 23 42 / 4%);
&--complete {
border-color: #bbf7d0;
background: linear-gradient(180deg, #f0fdf4 0%, #fff 60%);
}
&__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 14px 18px;
border-bottom: 1px solid #eef2f7;
}
&__title {
display: flex;
align-items: center;
gap: 10px;
font-size: 14px;
font-weight: 700;
color: #0f172a;
}
&__icon {
color: #2563eb;
font-size: 16px;
}
&--complete &__icon {
color: #16a34a;
}
&__badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 5px 12px;
border-radius: 20px;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.4px;
text-transform: uppercase;
fa-icon {
font-size: 11px;
}
&--ok {
background: #dcfce7;
color: #166534;
border: 1px solid #bbf7d0;
}
&--partial {
background: #fef3c7;
color: #92400e;
border: 1px solid #fde68a;
}
&--pending {
background: #fee2e2;
color: #991b1b;
border: 1px solid #fecaca;
}
}
&__body {
padding: 6px 18px 14px;
}
}
.kyc-status-row {
display: grid;
grid-template-columns: 140px 1fr auto;
align-items: center;
gap: 14px;
padding: 10px 0;
border-bottom: 1px dashed #eef2f7;
&:last-child {
border-bottom: none;
}
&__label {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
font-weight: 600;
color: #475569;
fa-icon {
color: #64748b;
font-size: 13px;
}
}
&__value {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
&--missing {
color: #94a3b8;
font-style: italic;
font-size: 13px;
}
}
&__id {
font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
font-size: 13px;
font-weight: 600;
color: #0f172a;
word-break: break-all;
}
&__name {
font-size: 12px;
color: #64748b;
}
}
.kyc-pill {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
border-radius: 20px;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.3px;
white-space: nowrap;
fa-icon {
font-size: 11px;
}
&--ok {
background: #dcfce7;
color: #166534;
border: 1px solid #bbf7d0;
}
&--pending {
background: #f1f5f9;
color: #64748b;
border: 1px solid #e2e8f0;
}
}
@media (width <= 640px) {
.kyc-status-row {
grid-template-columns: 110px 1fr;
grid-template-rows: auto auto;
.kyc-pill {
grid-column: 2 / 3;
justify-self: start;
}
}
}
/* ===================== Client info grid ===================== */
.ckyc-info-grid {
display: grid;