﻿:root {
    --bg: #f3fbfa;
    --panel: #FFFFFF;
    --panel-b: #d5ebe8;
    --ink: #0d2b29;
    --muted: #5b7674;
    --a1: #0e7f74;
    --a2: #1fb5a4;
    --grad: linear-gradient(120deg,var(--a1),var(--a2));
    --ok: #1fb56a;
    --err: #d64545;
    --line: rgba(0,0,0,.08);
    --input-bg: #FFFFFF;
    --focus-ring: rgba(31,181,164,.22);
    --tile-bg: #f3fbfa;
    --note-bg: rgba(31,181,164,.08);
    --note-b: rgba(31,181,164,.3);
    --note-ink: #0b5f57;
    --pad-top: env(safe-area-inset-top,0px);
    box-sizing: border-box;
    color-scheme: light;
}

html[data-theme="dark"] {
    --bg: #06100f;
    --panel: #0d2220;
    --panel-b: rgba(255,255,255,.1);
    --ink: #e6f5f3;
    --muted: #8fb0ac;
    --a1: #14958a;
    --a2: #3fd6c4;
    --ok: #3fd68c;
    --err: #f76a6a;
    --line: rgba(255,255,255,.08);
    --input-bg: rgba(255,255,255,.06);
    --focus-ring: rgba(63,214,196,.25);
    --tile-bg: rgba(255,255,255,.04);
    --note-bg: rgba(63,214,196,.1);
    --note-b: rgba(63,214,196,.3);
    --note-ink: #bff3ec;
    color-scheme: dark;
}

* {
    box-sizing: inherit
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important
    }
}

html, body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Vazirmatn',Tahoma,sans-serif;
    position: relative;
    overflow-x: hidden;
    padding-top: var(--pad-top)
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .35;
    z-index: 0;
    pointer-events: none
}

.b1 {
    width: 420px;
    height: 420px;
    background: var(--a1);
    top: -140px;
    left: -100px;
    animation: float1 16s ease-in-out infinite
}

.b2 {
    width: 380px;
    height: 380px;
    background: var(--a2);
    bottom: -160px;
    right: -80px;
    animation: float2 18s ease-in-out infinite
}

@keyframes float1 {
    0%,100% {
        transform: translate(0,0)
    }

    50% {
        transform: translate(40px,50px)
    }
}

@keyframes float2 {
    0%,100% {
        transform: translate(0,0)
    }

    50% {
        transform: translate(-40px,-40px)
    }
}

.topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    padding-top: calc(16px + var(--pad-top))
}

.tb-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: inherit;
    text-decoration: none
}

.tb-back {
    margin-inline-start: auto;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    transition: .15s
}

    .tb-back span {
        display: inline-block;
        transition: transform .2s
    }

    .tb-back:hover {
        color: var(--a1);
        background: var(--note-bg)
    }

        .tb-back:hover span {
            transform: translateX(-4px)
        }

    .tb-back + .themebtn {
        margin-inline-start: 0
    }

.mark {
    width: 34px;
    height: 34px;
    border-radius: 11px 11px 11px 4px;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 16px
}

.tb-brand b {
    font-size: 14px;
    font-weight: 700
}

.themebtn {
    margin-inline-start: auto;
    background: var(--panel);
    border: 1px solid var(--panel-b);
    color: var(--ink);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    font-size: 14px;
    cursor: pointer
}

.wrap {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    padding: 20px
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.98)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

.authcard {
    width: 100%;
    max-width: 420px;
    background: var(--panel);
    border: 1px solid var(--panel-b);
    border-radius: 20px;
    padding: 30px 26px;
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
    animation: cardIn .5s cubic-bezier(.2,.8,.2,1)
}

@keyframes viewIn {
    from {
        opacity: 0;
        transform: translateX(8px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.vwrap {
    animation: viewIn .3s ease
}

.a-title {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 4px;
    text-align: center
}

.a-sub {
    color: var(--muted);
    font-size: 13.5px;
    text-align: center;
    margin: 0 0 22px
}

.tabs {
    display: flex;
    background: var(--tile-bg);
    border: 1px solid var(--panel-b);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 22px
}

.tab {
    flex: 1;
    text-align: center;
    padding: 9px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: .2s
}

    .tab.on {
        background: var(--grad);
        color: #fff
    }

.f {
    margin-bottom: 15px;
    position: relative
}

    .f label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: var(--muted);
        margin-bottom: 6px
    }

    .f input {
        width: 100%;
        background: var(--input-bg);
        border: 1px solid var(--panel-b);
        border-radius: 11px;
        color: var(--ink);
        padding: 12px 14px;
        font-size: 14.5px;
        font-family: inherit;
        transition: .15s
    }

        .f input:focus {
            outline: none;
            border-color: var(--a1);
            box-shadow: 0 0 0 3px var(--focus-ring)
        }

.eye {
    position: absolute;
    left: 12px;
    top: 36px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 14px
}

.rowlink {
    display: flex;
    justify-content: flex-end;
    margin: -6px 0 18px
}

.lnk {
    background: none;
    border: none;
    color: var(--a1);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    padding: 0
}

    .lnk:hover {
        text-decoration: underline
    }

.back {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12.5px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    margin-bottom: 14px;
    padding: 0
}

.btn {
    width: 100%;
    position: relative;
    padding: 13.5px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    background: var(--grad);
    color: #fff;
    transition: transform .12s,box-shadow .12s,opacity .2s
}

    .btn:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(31,181,164,.35)
    }

    .btn:disabled {
        cursor: not-allowed;
        opacity: .85
    }

    .btn .lbl2 {
        transition: opacity .15s
    }

    .btn.loading .lbl2 {
        opacity: 0
    }

.spin {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center
}

.btn.loading .spin {
    display: flex
}

.ring {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    animation: sp .7s linear infinite
}

@keyframes sp {
    to {
        transform: rotate(360deg)
    }
}

.note {
    background: var(--note-bg);
    border: 1px solid var(--note-b);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 12.5px;
    color: var(--note-ink);
    margin-bottom: 18px
}

    .note.err {
        background: rgba(192,57,43,.08);
        border-color: rgba(192,57,43,.3);
        color: var(--err)
    }

.otpwrap {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    direction: ltr
}

.otpbox {
    width: 15%;
    aspect-ratio: 1;
    text-align: center;
    font-size: 19px;
    font-weight: 800;
    border-radius: 11px;
    border: 1px solid var(--panel-b);
    background: var(--input-bg);
    color: var(--ink);
    font-family: inherit
}

    .otpbox:focus {
        outline: none;
        border-color: var(--a1);
        box-shadow: 0 0 0 3px var(--focus-ring)
    }

.timerow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0 20px;
    font-size: 12.5px;
    color: var(--muted)
}

.timer {
    font-weight: 800;
    font-size: 15px;
    color: var(--a1);
    letter-spacing: 1px
}

    .timer.low {
        color: var(--err)
    }

.otphint {
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
    margin-bottom: 22px
}

    .otphint b {
        color: var(--ink)
    }

@keyframes pop {
    0% {
        transform: scale(.4);
        opacity: 0
    }

    70% {
        transform: scale(1.08)
    }

    100% {
        transform: scale(1);
        opacity: 1
    }
}

.donewrap {
    text-align: center;
    padding: 10px 0
}

.doneic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(47,158,82,.15);
    border: 1px solid var(--ok);
    color: var(--ok);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
    animation: pop .45s cubic-bezier(.2,.9,.3,1.3)
}

.authfoot {
    display: flex;
    gap: 20px;
    font-size: 12.5px
}

    .authfoot a {
        color: var(--muted);
        text-decoration: none;
        transition: .15s
    }

        .authfoot a:hover {
            color: var(--a1);
            text-decoration: underline
        }

        .authfoot a + a {
            position: relative
        }

            .authfoot a + a::before {
                content: "";
                position: absolute;
                right: -11px;
                top: 50%;
                width: 3px;
                height: 3px;
                margin-top: -1.5px;
                border-radius: 50%;
                background: var(--muted);
                opacity: .6
            }

.caprow {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 8px
}

.capcv {
    flex: 1;
    min-width: 0;
    height: 46px;
    border: 1px solid var(--panel-b);
    border-radius: 11px;
    background: var(--tile-bg);
    display: block
}

.caprf {
    flex: none;
    width: 46px;
    border: 1px solid var(--panel-b);
    background: var(--input-bg);
    border-radius: 11px;
    cursor: pointer;
    color: var(--a1);
    font-size: 20px;
    line-height: 1;
    transition: transform .45s,border-color .15s
}

    .caprf:hover {
        border-color: var(--a2);
        transform: rotate(180deg)
    }

.capin {
    text-align: center;
    letter-spacing: 6px;
    direction: ltr
}

    .capin::placeholder {
        letter-spacing: 0;
        direction: rtl
    }

img.capcv { object-fit: contain; background: #f3fbfa; -webkit-user-select: none; user-select: none }

/* لوگوی تیپینتا در نوار بالای صفحه‌ی ورود: لوگوی کامل در دسکتاپ، فقط نماد در موبایل؛ نسخه‌ی روشن‌تر برای تم تیره */
a.tb-brand { gap: 12px }
.tb-brand .bl { height: 32px; width: auto; display: block }
.tb-brand .bl-dark { display: none }
html[data-theme="dark"] .tb-brand .bl-light { display: none }
html[data-theme="dark"] .tb-brand .bl-dark { display: block }
.tb-brand .bi { display: none; width: 32px; height: 32px }
.tb-brand .bsep { display: block; width: 1px; height: 24px; background: var(--panel-b, rgba(0,0,0,.12)); flex: none }
@media (max-width: 520px) {
    .tb-brand .bl, html[data-theme="dark"] .tb-brand .bl-dark { display: none }
    .tb-brand .bi { display: block }
    .tb-brand .bsep { display: none }
}
