:root {
    --sehich-auth-navy: #0b1732;
    --sehich-auth-navy-2: #11254d;
    --sehich-auth-blue: #2f5be7;
    --sehich-auth-cyan: #15aab5;
    --sehich-auth-yellow: #f5bf18;
    --sehich-auth-green: #37a85b;
    --sehich-auth-ink: #12213f;
    --sehich-auth-muted: #66758d;
    --sehich-auth-line: #dce5f2;
}

html,
body.sehich-auth-body {
    min-height: 100%;
    margin: 0;
    background: #f4f8ff;
}

body.sehich-auth-body,
body.sehich-auth-body button,
body.sehich-auth-body input,
body.sehich-auth-body select {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

body.sehich-auth-body {
    overflow-x: hidden;
    color: var(--sehich-auth-ink);
}

body.sehich-auth-body #wpadminbar { direction: ltr; }

.sehich-auth-page,
.sehich-auth-page * { box-sizing: border-box; }

.sehich-auth-page--simple {
    position: relative;
    isolation: isolate;
    display: grid;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-columns: minmax(430px, 1.02fr) minmax(480px, .98fr);
    overflow: hidden;
    background: #f4f8ff;
}

.sehich-auth-welcome {
    position: relative;
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: clamp(52px, 7vw, 108px);
    color: #fff;
    background:
        radial-gradient(circle at 86% 12%, rgba(21, 170, 181, .42), transparent 26%),
        radial-gradient(circle at 12% 92%, rgba(47, 91, 231, .48), transparent 34%),
        linear-gradient(145deg, var(--sehich-auth-navy-2), var(--sehich-auth-navy));
}

.sehich-auth-welcome::before,
.sehich-auth-welcome::after {
    position: absolute;
    border-radius: 50%;
    content: '';
    pointer-events: none;
}

.sehich-auth-welcome::before {
    inset: 7% -105px auto auto;
    width: 260px;
    height: 260px;
    border: 54px solid rgba(245, 191, 24, .22);
}

.sehich-auth-welcome::after {
    inset: auto auto -95px 8%;
    width: 230px;
    height: 230px;
    border: 42px solid rgba(255, 255, 255, .08);
}

.sehich-auth-welcome > * { position: relative; z-index: 1; }

.sehich-auth-home-link {
    position: absolute;
    inset: 26px 30px auto auto;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    padding: 0 13px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.sehich-auth-logo {
    display: block;
    width: 76px;
    height: 76px;
    margin: 0 0 34px;
    border-radius: 21px;
    padding: 7px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.sehich-auth-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    border: 1px solid rgba(153, 215, 255, .28);
    border-radius: 999px;
    padding: 7px 12px;
    color: #99d7ff;
    background: rgba(153, 215, 255, .08);
    font-size: 12px;
    font-weight: 850;
}

.sehich-auth-welcome h1 {
    max-width: 680px;
    margin: 0 0 13px;
    color: #fff;
    font-size: clamp(36px, 4.8vw, 66px);
    font-weight: 900;
    line-height: 1.28;
    letter-spacing: -.035em;
}

.sehich-auth-welcome p {
    max-width: 650px;
    margin: 0;
    color: #c9d7ec;
    font-size: clamp(15px, 1.4vw, 19px);
    line-height: 2;
}

.sehich-auth-welcome ul {
    display: grid;
    max-width: 620px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.sehich-auth-welcome li {
    min-height: 108px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 17px;
    padding: 17px;
    color: #e7eef9;
    background: rgba(255, 255, 255, .07);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.8;
    backdrop-filter: blur(8px);
}

.sehich-auth-welcome li::before {
    display: grid;
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    place-items: center;
    border-radius: 9px;
    color: var(--sehich-auth-navy);
    background: var(--sehich-auth-yellow);
    content: '✓';
    font-weight: 900;
}

.sehich-auth-welcome li:nth-child(2)::before { background: #72d9df; }
.sehich-auth-welcome li:nth-child(3)::before { background: #8ed5a2; }

.sehich-auth-form-side {
    position: relative;
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    overflow: hidden;
    padding: 34px;
    background:
        radial-gradient(circle at 12% 16%, rgba(21, 170, 181, .15), transparent 25rem),
        radial-gradient(circle at 88% 84%, rgba(245, 191, 24, .19), transparent 23rem),
        #f4f8ff;
}

.sehich-auth-form-side::before {
    position: absolute;
    inset: 8% auto auto 8%;
    width: 90px;
    height: 90px;
    border: 18px solid rgba(47, 91, 231, .08);
    border-radius: 28px;
    content: '';
    transform: rotate(18deg);
}

.sehich-auth-card {
    position: relative;
    z-index: 2;
    width: min(100%, 520px);
    border: 1px solid rgba(172, 189, 214, .52);
    border-radius: 28px;
    padding: clamp(21px, 3vw, 32px);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 30px 80px rgba(31, 56, 100, .14);
}

.sehich-auth-card::before {
    position: absolute;
    inset: 0 22px auto;
    height: 4px;
    border-radius: 0 0 99px 99px;
    background: linear-gradient(90deg, var(--sehich-auth-blue), var(--sehich-auth-cyan), var(--sehich-auth-yellow));
    content: '';
}

.sehich-auth-card-head h2 {
    margin: 0;
    color: var(--sehich-auth-navy-2);
    font-size: 29px;
    font-weight: 900;
}

.sehich-auth-card-head p {
    margin: 6px 0 20px;
    color: var(--sehich-auth-muted);
    font-size: 13px;
}

.sehich-auth-role-pills,
.sehich-auth-tabs {
    display: grid;
    gap: 6px;
    margin-bottom: 9px;
    border: 1px solid #e6edf7;
    border-radius: 16px;
    padding: 5px;
    background: #f6f8fc;
}

.sehich-auth-role-pills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sehich-auth-tabs { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }

.sehich-auth-role-pill,
.sehich-auth-tab {
    min-width: 0;
    min-height: 43px;
    border: 0;
    border-radius: 12px;
    padding: 7px;
    color: #69778d;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.sehich-auth-role-pill:hover,
.sehich-auth-tab:hover { color: var(--sehich-auth-blue); }

.sehich-auth-role-pill.is-active,
.sehich-auth-tab.is-active {
    color: var(--sehich-auth-blue);
    background: #fff;
    box-shadow: 0 8px 20px rgba(47, 91, 231, .12);
}

.sehich-auth-panel { display: none; }
.sehich-auth-panel.is-active { display: block; animation: sehichAuthFade .2s ease; }

@keyframes sehichAuthFade {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.sehich-auth-method {
    margin-top: 12px;
    border: 1px solid #dde7f4;
    border-radius: 19px;
    padding: 18px;
    background: linear-gradient(145deg, #fff, #f7faff);
}

.sehich-auth-method h3 {
    margin: 0;
    color: var(--sehich-auth-navy-2);
    font-size: 18px;
    font-weight: 900;
}

.sehich-auth-method > p,
.sehich-auth-help {
    margin: 5px 0 15px;
    color: var(--sehich-auth-muted);
    font-size: 12px;
    line-height: 1.9;
}

.sehich-auth-card label {
    display: block;
    margin: 10px 2px 6px;
    color: #33415c;
    font-size: 12px;
    font-weight: 850;
}

.sehich-auth-card label span { color: #8794a9; font-size: 11px; }

.sehich-auth-card input,
.sehich-auth-card select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #ccd9ea;
    border-radius: 14px;
    outline: 0;
    padding: 10px 13px;
    color: var(--sehich-auth-ink);
    background: #fff;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.sehich-auth-card input:focus,
.sehich-auth-card select:focus {
    border-color: var(--sehich-auth-blue);
    box-shadow: 0 0 0 4px rgba(47, 91, 231, .11);
}

.sehich-auth-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.sehich-auth-btn {
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    padding: 11px 17px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.sehich-auth-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.sehich-auth-btn:disabled { opacity: .62; cursor: not-allowed; transform: none; }

.sehich-auth-btn--primary {
    width: 100%;
    margin-top: 11px;
    color: #fff;
    background: linear-gradient(135deg, var(--sehich-auth-blue), #5d7df0);
    box-shadow: 0 14px 27px rgba(47, 91, 231, .22);
}

.sehich-auth-btn--secondary {
    color: #fff;
    background: linear-gradient(135deg, #0e929b, var(--sehich-auth-cyan));
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(21, 170, 181, .18);
}

.sehich-auth-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.sehich-auth-code-row span { color: var(--sehich-auth-muted); font-size: 11px; }

.sehich-auth-password {
    margin-top: 14px;
    border-top: 1px solid #e5ecf6;
    padding-top: 14px;
}

.sehich-auth-password summary {
    color: var(--sehich-auth-blue);
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
}

.sehich-auth-password > div { padding-top: 10px; }

.sehich-auth-alert {
    display: none;
    margin: 10px 0;
    border-radius: 13px;
    padding: 11px 13px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.8;
}

.sehich-auth-alert.is-success {
    display: block;
    border: 1px solid #a7e7bb;
    color: #19753a;
    background: #effcf3;
}

.sehich-auth-alert.is-error {
    display: block;
    border: 1px solid #fecaca;
    color: #b42335;
    background: #fff4f4;
}

.sehich-auth-privacy {
    margin: 18px 0 0;
    color: #8a97aa;
    text-align: center;
    font-size: 10px;
    line-height: 1.8;
}

@media (max-width: 980px) {
    .sehich-auth-page--simple { grid-template-columns: minmax(320px, .82fr) minmax(440px, 1.18fr); }
    .sehich-auth-welcome { padding: 52px 40px; }
    .sehich-auth-welcome ul { grid-template-columns: 1fr; }
    .sehich-auth-welcome li { min-height: auto; }
}

@media (max-width: 820px) {
    .sehich-auth-page--simple { display: block; min-height: 100vh; }
    .sehich-auth-welcome { min-height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 17px 18px; }
    .sehich-auth-home-link { inset: 19px auto auto 18px; min-height: 36px; }
    .sehich-auth-welcome .sehich-auth-logo { width: 50px; height: 50px; margin: 0; border-radius: 14px; }
    .sehich-auth-kicker,
    .sehich-auth-welcome p,
    .sehich-auth-welcome ul { display: none; }
    .sehich-auth-welcome h1 { max-width: calc(100% - 150px); margin: 0; font-size: 18px; }
    .sehich-auth-form-side { min-height: calc(100vh - 84px); min-height: calc(100dvh - 84px); padding: 20px 16px 32px; overflow: visible; }
    .sehich-auth-card { width: min(100%, 560px); border-radius: 22px; padding: 21px; box-shadow: 0 18px 45px rgba(31, 56, 100, .11); }
}

@media (max-width: 480px) {
    .sehich-auth-card-head h2 { font-size: 24px; }
    .sehich-auth-inline { grid-template-columns: 1fr; }
    .sehich-auth-role-pills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sehich-auth-tabs { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
    .sehich-auth-role-pill,
    .sehich-auth-tab { padding-inline: 5px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .sehich-auth-page--simple *,
    .sehich-auth-page--simple *::before,
    .sehich-auth-page--simple *::after { animation: none !important; transition: none !important; }
}
