﻿@charset "UTF-8";


:root{
  --brand:#0c2040; --accent:#FFC107; --accent-press:#e5ae00;
  --text:#1f2533; --muted:#6b7380; --bg:#f7f8fb; --card:#fff;
  --radius:18px;
  --shadow:0 10px 30px rgba(18,38,63,.08);
  --input:#fff;
--input-b:#e2e7f0; --link:#205bff;
}

@font-face {
    font-family: Vazir-FD;
    src: url(../../includes/fonts/Vazir-FD.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;
}


* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Vazirmatn,system-ui,-apple-system,Segoe UI,Roboto,Arial;
    background: url('img/BG Pattern.svg');
    color: var(--text);
}


.wrap {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background-image: radial-gradient(12px 12px at 20px 20px, rgba(12,32,64,.04) 20%, transparent 21%), radial-gradient(12px 12px at 80px 60px, rgba(12,32,64,.04) 20%, transparent 21%);
    background-size: 120px 120px;
}

.card {
    width: 100%;
    max-width: 820px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 36px 32px;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

    .brand .logo {
        width: 30%;
        height: auto;
    }


h1 {
    margin: 0 0 10px;
    text-align: center;
    font-weight: 900;
    color: var(--brand);
    font-size: 28px;
}

.subtitle {
    margin: 0 0 20px;
    text-align: center;
    color: var(--muted);
}


.view {
    display: none;
}

    .view.active {
        display: block;
    }

    .font-fix{
        font-family: Vazir-FD;
        font: bold;
    }
        .font-fix#Title {
            font-size: 180%;
            color: #001c54;
        }




.grid {
    display: grid;
    row-gap: 12px;
    column-gap: 16px;
    grid-template-columns: repeat(1,minmax(0,1fr));
    justify-content: center;
    margin-top: 2px;
}

    .grid.one {
        grid-template-columns: minmax(0, 800px);
        justify-items: center;
    }
    .grid.one::placeholder{
        text-align:right;
    }


.field {
    display: contents;
}

    .field input {
        width: 100%;
        padding: 14px;
        border-radius: 10px;
        border: 1px solid rgba(0,0,0,.25);
        background: #fff;
        outline: none;
        font-size: 15px;
        transition: 0.2s border-color, 0.2s background;
    }

        .field input:focus {
            border-color: #b7c4d6;
            background: #fff;
        }

    .field .msg {
        display: block;
        min-height: 16px;
        margin-top: 6px;
        font-size: 12px;
        line-height: 16px;
        color: #b3261e;
        visibility: hidden;
    }

    .field.invalid input {
        border-color: #f2b8b5;
        background: #fff7f7;
    }

    .field.invalid .msg {
        visibility: visible;
    }
::placeholder{
    font-family:Vazir-FD;
    font-size: 120%;
}

   

.req::after {
    content: "";
    color: #ff3b30;
    margin-inline-start: 4px;
    font-weight: 800;
}


.actions {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.btn {
    width: 90%;
    max-width: 800px;
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 900;
    font-size: 120%;
    font-family: Vazir-FD;
    width: 100%;
    cursor: pointer;
    background: var(--accent);
    color: #000;
    transition: .15s transform,.15s background;
}

    .btn:hover {
        transform: translateY(-1px);
    }

    .btn:active {
        background: var(--accent-press);
        transform: none;
    }

    .btn[disabled] {
        opacity: .7;
        cursor: not-allowed;
    }

        .btn[disabled]::after {
            content: '…';
            margin-inline-start: 6px;
            animation: blink 1s steps(1) infinite;
        }

@keyframes blink {
    50% {
        opacity: .3;
    }
}

.linkrow {
    margin-top: 12px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

    .linkrow a {
        color: var(--link);
        text-decoration: none;
    }


.alert {
    display: block;
    min-height: 40px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    visibility: hidden;
}

    .alert.ok {
        background: #e8f5e9;
        color: #1b5e20;
        visibility: visible;
    }

    .alert.err {
        background: #fdecea;
        color: #b3261e;
        visibility: visible;
    }


.hide {
    display: none !important;
}

.timer {
    font-variant-numeric: tabular-nums;
}


input[inputmode="tel"], input[type="tel"]{
  direction:rtl; text-align:right;
}


#sv_code, #rp_code {
    direction: ltr;
    text-align: center;
}

.btn.secondary {
    background: #f1f4f9;
    width: 30%;
    color: #111;
}

    .btn.secondary:hover {
        background: #e9eef7;
    }
.captcha-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px;
}

    .captcha-box img {
        height: 36px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 2px;
        background: #fff;
        cursor: pointer;
    }

.back-btn {
    display: inline-block;
    color: #001c54;
    cursor: pointer;
    text-align: end;
    float: left;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    font-size: 18px;
    line-height: 1;
    transition: .15s transform,.15s background,.15s border-color;
}

    .icon-btn:hover {
        transform: translateY(-1px);
        background: #f8fafc;
        border-color: #dbe2ea;
    }

    .icon-btn:active {
        transform: none;
    }

/* --- Numeric inputs (phone, code, captcha) --- */
.numinput,
input[type="tel"],
input[inputmode="tel"],
#sv_code, #rp_code {
    direction: ltr;
    text-align: left;
    font-variant-numeric: tabular-nums;
    letter-spacing: .6px;
    font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace;
}

input::placeholder {
    text-align: right;
}


/* کدهای 6 رقمی کمی برجسته‌تر */

#sv_code, #rp_code {
    text-align: right; /* کد خواناتر وسط‌چین بهتره؛ اگر حتماً چپ می‌خوای بردار */
    font-size: 15px;
    padding: 14px 12px;
    border-radius: 12px;
    border: 1px solid #cfd8e3;
    background: #fff;
    box-shadow: 0 1px 0 rgba(16,24,40,.02);
}

    #sv_code:focus, #rp_code:focus {
        border-color: #b7c4d6;
        background: #fff;
    }

/* ورودی کپچا کوچک‌تر و منظم */

#captcha1 {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, .25);
    background: #fff;
    outline: none;
    font-size: 15px;
    transition: 0.2s border-color, 0.2s background;
}





@media (max-width:415px){
    .captcha-box{
        display:block;
    }

@media (max-width: 768px) {
    .wrap {
        padding: 20px 12px;
    }

    .card {
        max-width: 520px;
        padding: 20px 14px 24px;
        border-radius: 16px;
    }

    .brand .logo {
        width: 40%;
    }

    h1 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .subtitle {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .grid {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

    .field input {
        width: 100%;
        max-width: 100%;
        padding: 14px;
        border-radius: 10px;
        border: 1px solid rgba(0,0,0,.25);
        background:#fff;
        outline: none;
        font-size: 15px;
        transition:2s border-color,.2s background;
    }
}


@media (min-width:769px) and (max-width: 1024px) {
    .card {
        max-width: 680px;
    }
}
