﻿
/* --- Reset & base --- */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "iransansweb-normal",ui-rounded, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    line-height: 1.6;
    color: var(--fg);
    background: radial-gradient(1200px 800px at 110% -10%, #6ee7f9 0%, transparent 40%), radial-gradient(900px 700px at -10% 110%, #c4b5fd 0%, transparent 45%), linear-gradient(135deg, #0f172a 0%, #0b1020 100%);
    --fg: #e6eaf3;
    --muted: #9aa3b2;
    --card: rgba(255,255,255,0.08);
    --card-border: rgba(255,255,255,0.15);
    --brand: #22d3ee; /* cyan-400 */
    --brand-2: #a78bfa; /* violet-400 */
    --danger: #ef4444;
    --success: #10b981;
    --shadow: 0 10px 40px rgba(0,0,0,0.35);
}


@media (prefers-color-scheme: light) {
    body {
        background: radial-gradient(900px 700px at 110% -10%, #e0f2fe 0%, transparent 35%), radial-gradient(700px 600px at -10% 110%, #ede9fe 0%, transparent 40%), linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
        --fg: #0b1220;
        --muted: #5b6575;
        --card: rgba(255,255,255,0.7);
        --card-border: rgba(15,18,32,0.08);
        --shadow: 0 10px 40px rgba(9,12,20,0.08);
    }
}

/* --- Floating shapes --- */
.blob {
    position: fixed; /* قبلاً absolute بود → fixed بهتره */
    filter: blur(40px);
    opacity: .55;
    pointer-events: none;
    z-index: 0; /* مطمئن میشیم بالای کانتنت نیاد */
}

.b1 {
    width: 300px;
    height: 300px;
    right: -60px;
    top: -60px;
    background: conic-gradient(from 120deg, var(--brand), transparent 40%);
    animation: float 10s ease-in-out infinite;
}

.b2 {
    width: 240px;
    height: 240px;
    left: -40px;
    bottom: -40px;
    background: conic-gradient(from -40deg, var(--brand-2), transparent 40%);
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
    0%,100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(6deg);
    }
}

/* --- Layout --- */
.wrap {
    position: relative;
    place-items: center;
    height: 100%;
    padding: 24px;
    display: flex;
    justify-content: center;
    margin: 21px;
}

.card {
    position: relative;
    width: min(420px, 96vw);
    background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.06)) padding-box, linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,0)) border-box;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
}

/* --- Card header --- */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px 8px 22px;
    border-bottom: 1px dashed var(--card-border);
}

.logo {
    border-radius: 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
    font-weight: 800;
    box-shadow: inset 0 0 20px rgba(255,255,255,.25);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px 8px 22px;
    border-bottom: 1px dashed var(--card-border);
}

    .brand h1 {
        font-size: 15px;
        letter-spacing: .2px;
    }

    .brand img {
        height: 42px;
        object-fit: contain;
    }

.badge {
    margin-right: auto;
    color: var(--muted);
}

/* --- Content --- */
.content {
    padding: 18px 22px 22px 22px;
}

.title {
    font-size: 22px;
    margin: 0 0 10px;
    text-align: center;
}

.subtitle {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 18px;
}

/* --- Form --- */



label {
    font-size: 13px;
    color: var(--muted);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.ipt {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 12px 14px;
    transition: border .2s, background .2s, box-shadow .2s;
    margin-bottom: 10px;
}

    .ipt:focus-within {
        border-color: transparent;
        box-shadow: 0 0 0 3px rgba(34,211,238,.35), 0 8px 24px rgba(0,0,0,.12);
    }

    .ipt input {
        flex: 1;
        background: transparent;
        border: 0;
        outline: none;
        color: var(--fg);
        font-size: 18px;
    }

        .ipt input::placeholder {
            color: color-mix(in oklab, var(--muted) 80%, transparent);
        }

.hint {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

    .hint a {
        color: var(--fg);
        text-decoration: none;
        border-bottom: 1px dashed rgba(255,255,255,.25);
        font-size: 15px;
        font-weight: bold;
    }

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

    .checkbox input {
        accent-color: var(--brand);
        width: 16px;
        height: 16px;
    }

.btn {
    border: 0;
    cursor: pointer;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 15px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #0b1020;
    box-shadow: 0 10px 24px rgba(34,211,238,.2);
    transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
    color: white;
    width: 100%;
    margin-bottom: 10px;
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 30px rgba(167,139,250,.25);
    }

    .btn:active {
        transform: translateY(0);
        filter: saturate(120%);
    }

    .btn[disabled] {
        opacity: .6;
        cursor: not-allowed;
    }

.divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

    .divider::before, .divider::after {
        content: "";
        height: 1px;
        background: var(--card-border);
    }

.menu {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    direction: rtl;
    font-family: tahoma, sans-serif;
}

    .menu a {
        flex: 1;
        color: #fff;
        text-decoration: none;
    }

        .menu a:nth-child(1) {
            background: #ffc107;
        }
        /* تماس با ما */
        .menu a:nth-child(2) {
            background: #17a2b8;
        }
        /* درباره ما */
        .menu a:nth-child(3) {
            background: #dc3545;
        }
.ipt svg {
    flex-shrink: 0; /* اجازه کوچک شدن نده */
    width: 18px; /* عرض ثابت */
    height: 18px; /* ارتفاع ثابت */
}
.ipt button {
    flex-shrink: 0; /* کوچک نشود */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 16px; /* اندازه مناسب */
    padding: 0 4px; /* فاصله مناسب */
}

/* --- Footer --- */
.foot {
    text-align: center;
    padding: 12px 22px 18px 22px;
    color: var(--muted);
    font-size: 12px;
    font-weight: bold;
}




/* --- Currency doodles --- */
.tickers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .15;
    overflow:hidden;
}

.ticker-row {
    position: absolute;
    left: 0;
    right: 0;
    white-space: nowrap;
    overflow: hidden;
    font-weight: 700;
    letter-spacing: .5px;
}

    .ticker-row span {
        display: inline-block;
        padding: 6px 16px;
    }

.t1 {
    top:5%;
    animation: marquee 22s linear infinite;
}

.t2 {
    bottom: 3%;
    animation: marquee 28s linear infinite reverse;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Accessibility focus ring for keyboard users --- */
/*:focus-visible {
    outline: 3px solid color-mix(in oklab, var(--brand) 60%, var(--brand-2));
    outline-offset: 2px;
    border-radius: 10px;
}*/

.togglePassword {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
}

.cursor-pointer {
    cursor: pointer;
}

.dirtextltr {
    text-align: left !important;
    direction: ltr;
}

.error-text {
    text-align: right;
    font-size: 12px;
}

.font-12 {
    font-size: 12px;
}

dl, ol, ul {
    list-style: none;
}

.inputclass {
    display: block;
    width: 100%;
    font-size: 1rem;
    line-height: 1.5;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    padding: .75rem !important;
    color: #222 !important;
    text-indent: 10px !important;
    border-radius: 20px !important;
    font-weight: 300 !important;
    background-color: #fff !important;
}

.alert {
    padding: 0.5rem 1.25rem;
    margin-top: 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
}

.alert-danger {
    color: #721c24;
    background-color: #ea031c;
    border-color: #ea031c;
}

    .alert-danger hr {
        border-top-color: #f1b0b7;
    }

    .alert-danger .alert-link {
        color: #491217;
    }

.bg-warning {
    background-color: #ffc107 !important;
}

.bg-info {
    background-color: #17a2b8 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

.text-white {
    color: white !important;
}

.text-danger {
    color: red !important;
}

.position-relative {
    position: relative;
}
.text-center {
    text-align: center;
}
.w-100{

}
/* برای موبایل */
@media (max-width: 768px) {
    .menu a {
        flex: 100%;
    }

    .brand {
        display: block;
    }

        .brand img {
            margin: auto;
        }

        .brand h1 {
            width: 100%;
            text-align: center;
        }

    .ipt input {
        font-size: 13px;
    }

    .ipt svg {
        width: 18px; /* همان اندازه دسکتاپ */
        height: 18px;
    }


    .ipt button {
        margin-left: -30px;
    }

    .t1 {
        top: 1% !important;
    }

    .t2 {
        bottom: -1% !important;
    }
}
mt-15 {
    margin-top: 15px;
}
a {
    text-decoration: none !important;
}