.sota-wrap {
    --sota-brand: #e8385f;
    --sota-brand-2: #f8a1b4;
    --sota-radius: 22px;
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    max-width: 820px;
    margin: 48px auto;
    padding: 40px 16px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(650px 340px at 12% 15%, rgba(232, 56, 95, .16), transparent 60%),
        radial-gradient(520px 300px at 88% 85%, rgba(248, 161, 180, .35), transparent 60%),
        linear-gradient(160deg, #fff5f7, #fde4ea);
}
.sota-wrap * { font-family: inherit; }

/* حالت تمام‌صفحه: کل ویوپورت رو می‌پوشونه، فارغ از هر padding/margin قالب */
.sota-wrap.sota-fullscreen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    max-width: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
    z-index: 9999;
}
.sota-fullscreen .sota-card { max-width: 1040px; width: 100%; min-height: 640px; margin: auto; }

.sota-wrap::before,
.sota-wrap::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .5;
    pointer-events: none;
}
.sota-wrap::before {
    width: 90px; height: 90px;
    background: radial-gradient(circle at 35% 35%, #ffd7e0, transparent 70%);
    top: 8%; right: 8%;
}
.sota-wrap::after {
    width: 60px; height: 60px;
    background: radial-gradient(circle at 35% 35%, #ffe9ee, transparent 70%);
    bottom: 10%; left: 10%;
}

.sota-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    background: #fff;
    border-radius: var(--sota-radius);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(232, 56, 95, .22), 0 10px 25px rgba(0, 0, 0, .08);
}

@media (max-width: 640px) {
    .sota-wrap { padding: 20px 10px; margin: 20px auto; }
    .sota-wrap.sota-fullscreen { padding: 24px 12px; }
    .sota-card { grid-template-columns: 1fr; }
    .sota-side-art { display: none; }
    .sota-side-top { padding: 22px 20px 4px; }
    .sota-tabs { flex-direction: row; flex-wrap: wrap; }
    .sota-tab { flex: 1 1 auto; justify-content: center; padding: 14px 10px; font-size: 13px; }
    .sota-forms { padding: 24px 20px; }
    .sota-fullscreen .sota-card { min-height: auto; }
}

.sota-side {
    background:
        linear-gradient(165deg, var(--sota-brand), var(--sota-brand-2)),
        repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 26px);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding-bottom: 8px;
}

.sota-side-top {
    padding: 44px 30px 10px;
    text-align: center;
}
.sota-logo {
    max-width: 150px;
    max-height: 72px;
    object-fit: contain;
}
.sota-logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .5px;
}
.sota-tagline {
    margin: 12px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
}

.sota-side-art {
    padding: 28px 34px 10px;
    display: flex;
    justify-content: center;
}
.sota-side-art svg { width: 150px; height: auto; }

.sota-side-hint {
    margin: auto 34px 34px;
    color: rgba(255, 255, 255, .85);
    font-size: 13.5px;
    line-height: 1.9;
    text-align: center;
}

.sota-tabs {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

.sota-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .85);
    padding: 22px 28px;
    text-align: right;
    font-size: 15.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background .15s ease;
}
.sota-tab:hover { background: rgba(255, 255, 255, .08); }
.sota-tab.is-active {
    background: #fff;
    color: var(--sota-brand);
    font-weight: 600;
}
.sota-tab-ico { font-size: 16px; }

.sota-forms {
    padding: 56px 48px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sota-title {
    margin: 0 0 18px;
    font-weight: 600;
    color: #222;
}

.sota-msg {
    background: #fdecef;
    color: #b3123a;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13.5px;
    margin-bottom: 14px;
}
.sota-msg.is-success {
    background: #e9f8ef;
    color: #1e7a44;
}

.sota-panel { display: none; }
.sota-panel.is-active { display: block; }
.sota-step { display: none; }
.sota-step.is-active { display: block; }

.sota-row {
    display: flex;
    gap: 12px;
}
.sota-row .sota-input { flex: 1; }

.sota-input {
    width: 100%;
    box-sizing: border-box;
    background: #f2f2f4;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 14px;
    margin-bottom: 14px;
    outline: none;
    transition: border-color .15s ease, background .15s ease;
    text-align: right;
}
.sota-input:focus {
    background: #fff;
    border-color: var(--sota-brand);
}
.sota-input.is-invalid { border-color: #d33; }

.sota-btn {
    width: 100%;
    background: var(--sota-brand);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 14px;
    transition: opacity .15s ease, transform .05s ease;
}
.sota-btn:hover { opacity: .92; }
.sota-btn:active { transform: scale(.99); }
.sota-btn[disabled] { opacity: .6; cursor: not-allowed; }

.sota-link {
    display: block;
    text-align: center;
    color: #888;
    font-size: 13px;
    text-decoration: none;
}
.sota-link:hover { color: var(--sota-brand); }

.sota-link-btn {
    background: none;
    border: none;
    color: var(--sota-brand);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}
.sota-link-btn[disabled] { color: #aaa; cursor: not-allowed; }
.sota-block-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 13.5px;
    font-weight: 500;
}

.sota-hint {
    font-size: 13px;
    color: #555;
    margin: 0 0 14px;
}

.sota-resend {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 4px;
}

.sota-code-input {
    letter-spacing: 4px;
    font-size: 20px;
    text-align: center;
}

.sota-already-logged-in {
    max-width: 480px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 10px;
    background: #f7f7f9;
    text-align: center;
}

.sota-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sota-spin .6s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}
@keyframes sota-spin { to { transform: rotate(360deg); } }
