﻿@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* auth.css — MoneyPorter brand */
:root {
    --brand-navy: #122a44; /* رنگ اصلی، متن و عناوین */
    --brand-navy-dark: #0d1828; /* هاور دکمه‌های سرمه‌ای */
    --brand-orange: #F79421; /* رنگ تاکیدی، دکمه و لینک */
    --brand-orange-dark: #dd7f12; /* هاور دکمه نارنجی */
    --brand-gray: #A7A9AC; /* متن کم‌رنگ و موج */

    --ic-text: #122a44;
    --ic-muted: #6b7280;
    --ic-border: #e5e7eb;
    --ic-bg: #f5f6f8;
}

body,
.auth-card,
.auth-input,
.auth-btn {
    font-family: 'Vazirmatn', 'IRANSans', system-ui, sans-serif;
}

    body.auth-body {
        margin: 0;
        background: linear-gradient(135deg, #ffffff 0%, #f4f6f9 100%);
        direction: rtl;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--ic-border);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 24px rgba(20, 36, 61, 0.06);
}

/* لوگو + برند */
.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

    .auth-brand img {
        height: 44px;
    }

    .auth-brand span {
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--brand-navy);
    }

/* نوار موج برند زیر لوگو */
.auth-wave-or {
    height: 4px;
    width: 64px;
    margin: 0 auto 1.75rem;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--brand-gray) 0%, var(--brand-gray) 50%, var(--brand-orange) 50%, var(--brand-orange) 100%);
}

/* متن جایگزین تب (auth-switch) */
.auth-switch {
    text-align: center;
    color: var(--brand-gray);
    font-size: 15px;
    margin: 8px 0 18px;
    font-weight: 500;
}

    .auth-switch a {
        color: var(--brand-orange);
        text-decoration: none;
        font-weight: 600;
    }

        .auth-switch a:hover {
            text-decoration: underline;
        }

/* متن راهنما */
.auth-hint {
    text-align: center;
    color: var(--ic-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

/* فیلد ورودی */
.auth-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--ic-border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    text-align: center;
    color: var(--ic-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .auth-input:focus {
        border-color: var(--brand-orange);
        box-shadow: 0 0 0 3px rgba(247, 148, 33, 0.15);
    }

    .auth-input::placeholder {
        color: #9ca3af;
    }

/* دکمه اصلی — نارنجی (برای "ورود") */
.auth-btn {
    width: 100%;
    border: 0;
    background: var(--brand-orange);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem;
    border-radius: 10px;
    margin-top: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .auth-btn:hover {
        background: var(--brand-orange-dark);
    }

/* دکمه سرمه‌ای (برای "تأیید") */
.auth-btn-navy {
    width: 100%;
    border: 0;
    background: var(--brand-navy);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem;
    border-radius: 10px;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .auth-btn-navy:hover {
        background: var(--brand-navy-dark);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }


/* فوتر */
.auth-footer {
    text-align: center;
    font-size: 0.78rem;
    color: var(--ic-muted);
    margin-top: 1.25rem;
    line-height: 1.6;
}

    .auth-footer a {
        color: var(--brand-navy);
        text-decoration: none;
        font-weight: 500;
    }

/* خطای اعتبارسنجی */
.field-validation-error {
    display: block;
    color: #dc2626;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 0.5rem;
}






.auth-wave2 {
    height: 4px;
    width: 100%;
    border-radius: 4px;
    margin: 0.75rem 0 1.25rem;
    background: linear-gradient(90deg, transparent 0%, var(--brand-orange) 50%, transparent 100%);
}

.auth-wave {
    height: 4px;
    width: 64px;
    margin: 0 auto 1.75rem;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--brand-gray) 0%, var(--brand-gray) 50%, var(--brand-navy) 50%, var(--brand-navy) 100%);
}

.auth-otp-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
}

.auth-timer {
    color: var(--brand-gray);
    font-size: .9rem;
    direction: ltr;
}

.auth-otp-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
    color: var(--brand-gray);
    margin: .5rem 0 1rem;
}

    .auth-otp-info a, .auth-resend {
        color: var(--brand-orange);
        text-decoration: none;
    }

.auth-resend {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: .9rem;
}

.auth-error {
    color: #e03131;
    font-size: .8rem;
    display: block;
    min-height: 1rem;
    margin: .25rem 0;
}
#step-mobile .auth-input,
#step-otp .auth-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}



.kyc-authorization-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
   /* background: #fafaff;*/
    padding: 40px 20px;
    direction: rtl;
    font-family: inherit;
}

.kyc-container {
    width: 100%;
    max-width: 560px;
}

/* ── Card ─────────────────────────────────────── */
.kyc-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
    padding: 48px 40px 40px;
    border: 1px solid #eef0f6;
}

/* ── Header ───────────────────────────────────── */
.kyc-header {
    text-align: center;
    margin-bottom: 10px;
}

.kyc-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.kyc-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.7;
}

/* ── Illustration ─────────────────────────────── */
.kyc-illustration {
    text-align: center;
    margin-bottom: 0px;
}

    .kyc-illustration svg {
        width: 200px;
        height: 160px;
    }

/* ── Info List ────────────────────────────────── */
.kyc-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.kyc-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kyc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .kyc-icon svg {
        width: 22px;
        height: 22px;
    }

.kyc-icon-clock {
    background: #eff6ff;
    color: #3b82f6;
}

.kyc-icon-id {
    background: #f0fdf4;
    color: #16a34a;
}

.kyc-icon-video {
    background: #fef3c7;
    color: #d97706;
}

.kyc-info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kyc-info-label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.kyc-info-desc {
    font-size: 13px;
    color: #9ca3af;
}

/* ── Button ───────────────────────────────────── */
.kyc-actions {
    text-align: center;
}

.btn-kyc-start {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 0;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-kyc-start:hover {
        background: #1d4ed8;
    }

/* ── مرحله ۲: انتخاب روش ───────────────────────── */
.kyc-header-method {
    text-align: right;
    margin-bottom: 24px;
}

.kyc-title-method {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.kyc-method-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

    .kyc-method-option.selected {
        border-color: #F79421;
        background: #fcfcfd;
    }

.kyc-method-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: right;
}

.kyc-method-label {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.kyc-method-desc {
    font-size: 12px;
    color: #9ca3af;
}

.kyc-method-icon {
    width: 36px;
    height: 36px;
    color: #6b7280;
    flex-shrink: 0;
}

    .kyc-method-icon svg {
        width: 24px;
        height: 24px;
    }

/* رادیوی سفارشی */
.kyc-method-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.kyc-radio-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s;
}

.kyc-method-option.selected .kyc-radio-dot {
    border-color: #F79421;
}

    .kyc-method-option.selected .kyc-radio-dot::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #F79421;
    }

.kyc-actions-method {
    margin-top: 24px;
}
.kyc-header-info {
    text-align: center;
    margin-bottom: 28px;
}

.kyc-title-info {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-navy, #122a44);
    margin: 0 0 8px;
}

.kyc-subtitle-info {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.kyc-form-group {
    margin-bottom: 20px;
}

.kyc-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    text-align: right;
}

.kyc-input-wrapper {
    position: relative;
}

.kyc-input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    color: #1f2937;
    text-align: right;
    transition: border-color .2s, box-shadow .2s;
}

    .kyc-input:focus {
        outline: none;
        border-color: var(--brand-orange, #F79421);
        box-shadow: 0 0 0 3px rgba(247, 148, 33, .12);
    }

.kyc-input-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: #9ca3af;
    pointer-events: none;
}

.kyc-birthdate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.kyc-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    text-align: center;
    cursor: pointer;
    appearance: none;
}

    .kyc-select:focus {
        outline: none;
        border-color: var(--brand-orange, #F79421);
        box-shadow: 0 0 0 3px rgba(247, 148, 33, .12);
    }



/* استپر عمودی */
.kyc-stepper-vertical {
    display: flex;
    flex-direction: column;
    padding-right: 20px;
    position: relative;
    margin: 30px 0;
}

    /* خط عمودی رابط بین دایره‌ها */
    .kyc-stepper-vertical::before {
        content: "";
        position: absolute;
        right: 29px;
        top: 10px;
        bottom: 10px;
        width: 2px;
        background-color: #e5e7eb;
    }

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

/*.step-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #d1d5db;
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}*/
.step-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #d1d5db;
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    line-height: 1; /* حذف فاصله baseline */
    box-sizing: border-box;
}
/* حالت مرحله طی شده (آبی با تیک) */
.step-item.completed .step-icon {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* حالت مرحله فعلی (دایره با هاله آبی) */
.step-item.active .step-icon {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.step-label {
    font-size: 14px;
    color: #6b7280;
}

.step-item.active .step-label, .step-item.completed .step-label {
    color: #111827;
    font-weight: 500;
}






.kyc-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.step {
    text-align: center;
    flex: 1;
}

.circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #d1d5db;
    line-height: 42px;
    margin: auto;
    color: white;
}

.step.done .circle {
    background: #16a34a;
}

.step.locked .circle {
    background: #9ca3af;
}

.step span {
    display: block;
    margin-top: 8px;
    font-size: 13px;
}


.tab-content > .tab-pane:not(.active) {
    display: none !important;
}

.tab-content > .tab-pane.active {
    display: block !important;
}
.account-header-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 18px;
    border-bottom: 1px solid #f3f4f6;
    background-color: #f0f4f8 !important;
}