@font-face {
    font-family: Peyda;
    src: url("fonts/PeydaWeb-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap
}

@font-face {
    font-family: Peyda;
    src: url("fonts/PeydaWeb-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap
}

@font-face {
    font-family: Peyda;
    src: url("fonts/PeydaWeb-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap
}

:root {
    --navy: #11102f;
    --violet: #5c54e8;
    --lavender: #aaa5ff;
    --ink: #24233a;
    --muted: #747388;
    --line: #e6e5ef;
    --danger: #b32d48;
    --soft: #f7f7fc;
    --radius: 14px;
    color-scheme: light;
    font-family: Peyda, Tahoma, Arial, sans-serif
}

* {
    box-sizing: border-box
}

body {
    direction: rtl;
    text-align: start;
    margin: 0;
    background: #f5f5fa;
    color: var(--ink)
}

button,
input,
summary {
    font: inherit
}

button {
    cursor: pointer
}

a,
button,
input,
summary {
    -webkit-tap-highlight-color: transparent
}

button {
    touch-action: manipulation
}

button:focus-visible,
summary:focus-visible {
    outline: 3px solid #a29bff;
    outline-offset: 4px
}

button:disabled {
    cursor: wait
}

button[disabled].text-button {
    cursor: default;
    color: #7e7b93
}

svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0
}

[hidden] {
    display: none !important
}

.page {
    min-height: 100svh;
    padding: 48px 28px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center
}

.auth-shell {
    width: 100%;
    max-width: 1120px;
    min-height: 690px;
    display: grid;
    grid-template-columns: minmax(0, 57fr) minmax(0, 43fr);
    grid-template-areas: "form brand";
    direction: rtl;
    border: 1px solid #e5e3f0;
    border-radius: 28px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 18px 65px -38px #302a6845
}

.brand-panel {
    grid-area: brand;
    text-align: start;
    background: radial-gradient(ellipse at 0% 100%, #2c246b 0, transparent 65%), var(--navy);
    padding: 42px 40px 28px;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    overflow: hidden
}

.brand-white {
    object-fit: contain;
    object-position: right;
    max-width: 100%;
    height: auto
}

.brand-story {
    margin: auto 0;
    padding: 46px 0 10px
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: #c6c3ee
}

.eyebrow>span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a8a1ff
}

.brand-story h2 {
    font-size: 39px;
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: -1.2px;
    margin: 16px 0 14px
}

.brand-story p {
    color: #bdbbd1;
    font-size: 14px;
    line-height: 2.15;
    margin: 0
}

.brand-art {
    height: 225px;
    position: relative;
    display: grid;
    place-items: center;
    margin-top: 14px;
    isolation: isolate
}

.orbit {
    position: absolute;
    border: 1px solid #aaa5ff25;
    border-radius: 50%;
    width: 310px;
    height: 155px;
    transform: rotate(-24deg);
    z-index: -1
}

.orbit-two {
    width: 250px;
    height: 215px;
    transform: rotate(36deg)
}

.brand-tile {
    height: 156px;
    width: 156px;
    border-radius: 36px;
    display: grid;
    place-items: center;
    transform: rotate(-8deg);
    background: linear-gradient(145deg, #ffffff10, #ffffff03);
    border: 1px solid #ffffff17;
    box-shadow: 0 25px 50px #09062133
}

.brand-tile img {
    width: 103px;
    height: 112px;
    object-fit: contain;
    transform: rotate(8deg)
}

.orbit-dot {
    position: absolute;
    width: 9px;
    height: 9px;
    background: #9891f8;
    border-radius: 50%;
    box-shadow: 0 0 0 6px #9b94fa0a
}

.dot-one {
    right: 28px;
    top: 92px
}

.dot-two {
    left: 57px;
    bottom: 37px;
    width: 6px;
    height: 6px;
    background: #6e67c1
}

.brand-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a39ec4;
    font-size: 12px;
    margin: 12px 0 0
}

.tiny-line {
    height: 1px;
    background: #928bb85c;
    flex: 1;
    max-width: 28px
}

.form-panel {
    grid-area: form;
    text-align: start;
    padding: 35px 46px 24px;
    display: flex;
    flex-direction: column;
    min-width: 0
}

.form-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.brand-dark {
    object-fit: contain;
    width: 105px;
    height: auto
}

.help-button {
    border: 0;
    background: transparent;
    padding: 10px 0;
    color: #69667c;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 44px
}

.help-button>span {
    display: grid;
    place-items: center;
    border: 1px solid #c4c1d3;
    border-radius: 50%;
    width: 19px;
    height: 19px;
    font-size: 12px
}

.form-stage {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 46px 0 40px
}

.screen {
    text-align: start;
    width: 100%;
    max-width: 390px;
    margin: 0 auto
}

h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.55;
    margin: 0 0 9px;
    letter-spacing: -.6px
}

h1:focus {
    outline: none
}

.intro {
    margin: 0 0 29px;
    color: #706d83;
    font-size: 14px;
    line-height: 1.95
}

.field {
    margin-bottom: 20px
}

.field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 9px
}

.field input {
    text-align: right;
    font-size: 16px;
    line-height: 1.5;
    background: #fff;
    border: 1px solid #dcd9e7;
    border-radius: var(--radius);
    width: 100%;
    min-height: 56px;
    padding: 13px 16px;
    outline: none;
    color: var(--navy);
    transition: border-color .15s, box-shadow .15s
}

.field input::placeholder {
    direction: rtl;
    text-align: right;
    color: #9b97ac;
    font-size: 14px;
    letter-spacing: 0
}

.field input:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 4px #5c54e814
}

.field input[aria-invalid=true] {
    border-color: var(--danger)
}

.field-hint {
    font-size: 12px;
    color: var(--muted);
    margin: 9px 0 0;
    line-height: 1.8
}

.field-error {
    color: var(--danger);
    font-size: 12px;
    line-height: 1.85;
    margin: 8px 0 0
}

.primary {
    background: var(--navy);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    transition: background .15s
}

.primary:hover {
    background: #28214f
}

.primary:disabled {
    opacity: .72
}

.primary[aria-busy=true]::after {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff55;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite
}

.primary[aria-busy=true] svg {
    display: none
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.alternate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--violet);
    font-weight: 600;
    font-size: 14px;
    background: none;
    border: 0;
    min-height: 48px;
    padding: 10px 0;
    margin: 15px auto 0
}

.alternate svg {
    width: 16px;
    height: 16px
}

.alternate:hover,
.text-button:hover {
    color: #3930b7
}

.terms {
    font-size: 11px;
    color: #817c93;
    line-height: 2;
    text-align: start;
    margin: 27px 0 0
}

.terms button {
    border: 0;
    padding: 4px 0;
    background: none;
    color: #655b9b;
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 4px
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 11px;
    line-height: 1.9;
    color: #9690a9
}

.footer-line {
    height: 3px;
    width: 3px;
    border-radius: 50%;
    background: #c5c0d4
}

.back {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    background: none;
    border: 0;
    padding: 6px 0;
    min-height: 44px;
    color: #716b8b;
    margin: 0 0 20px
}

.back svg {
    width: 17px;
    height: 17px
}

.text-button {
    border: 0;
    background: transparent;
    font-size: 12px;
    color: var(--violet);
    padding: 10px 2px;
    min-height: 44px;
    font-weight: 600
}

.number-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #f7f6fb;
    border: 1px solid #efedf5;
    border-radius: 12px;
    padding: 3px 12px;
    margin: -10px 0 24px
}

.number-row bdi {
    font-size: 15px;
    color: #48415c;
    letter-spacing: .7px
}

.field .otp-input {
    text-align: center;
    font-size: 28px;
    letter-spacing: .45em;
    direction: ltr;
    min-height: 64px;
    padding-inline-start: calc(16px + .45em);
    font-weight: 600
}

.field .otp-input::placeholder {
    direction: ltr;
    text-align: center;
    font-size: 23px !important;
    color: #c3bed4 !important
}

.resend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted)
}

.password-wrap {
    position: relative
}

.password-wrap input {
    padding-inline-start: 52px;
    padding-inline-end: 16px
}

.show-password {
    position: absolute;
    inset-inline-end: 4px;
    top: 5px;
    min-width: 44px;
    min-height: 46px;
    background: none;
    border: 0;
    color: #8a819e;
    display: grid;
    place-items: center
}

.show-password svg {
    width: 20px;
    height: 20px
}

.forgot-row {
    display: flex;
    justify-content: flex-start;
    margin: -12px 0 12px
}

.optional-field {
    font-size: 13px;
    margin: -3px 0 20px
}

.optional-field summary {
    color: #716789;
    cursor: pointer;
    min-height: 44px;
    padding: 10px 0
}

.optional-field summary span {
    color: #9690a2;
    font-size: 11px;
    margin-inline-start: 6px
}

.optional-field .field {
    margin: 8px 0 0
}

.done {
    text-align: center
}

.done-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    background: #eaf8f2;
    color: #178b65;
    border-radius: 22px;
    margin: 0 auto 22px
}

.done-icon svg {
    width: 30px;
    height: 30px
}

.done .intro {
    margin-bottom: 18px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

dialog {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
    max-width: 440px;
    width: calc(100% - 32px);
    color: var(--ink);
    font-size: 14px;
    line-height: 2.05;
    box-shadow: 0 28px 100px #11102f38
}

dialog::backdrop {
    background: #11102f66;
    backdrop-filter: blur(4px)
}

dialog header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px
}

dialog h2 {
    font-size: 20px;
    margin: 0
}

.close-dialog {
    background: #f6f4fa;
    border: 0;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    font-size: 26px;
    color: #716787
}

dialog p {
    margin: 12px 0
}

dialog .primary {
    margin-top: 22px
}

dialog bdi {
    font-weight: 600
}

dialog ol {
    padding-inline-start: 21px;
    padding-inline-end: 0
}

.entry-back {
    text-decoration: none;
    width: max-content;
    max-width: 100%;
    margin-bottom: 18px
}

.publisher-entry {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 56px;
    border: 1px solid var(--violet);
    border-radius: var(--radius);
    margin-top: 18px;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 13px;
    color: #fff;
    background: var(--violet);
    box-shadow: 0 5px 16px #5c54e821;
    transition: background .15s, border-color .15s, box-shadow .15s
}

.publisher-entry strong {
    color: inherit;
    font-size: 14px;
    font-weight: 700
}

.publisher-entry svg {
    width: 18px;
    height: 18px;
    color: inherit
}

.publisher-entry:hover {
    border-color: #4940cd;
    background: #4940cd;
    box-shadow: 0 6px 18px #5c54e833
}

.publisher-entry:active {
    background: #4036bf
}

.publisher-entry:focus-visible,
.entry-back:focus-visible {
    outline: 3px solid #a29bff;
    outline-offset: 4px
}

.publisher-note {
    color: #776d8e;
    line-height: 1.95;
    font-size: 12px;
    margin: 18px 0 0;
    padding: 12px 14px;
    border-inline-start: 2px solid #b3a5ec;
    background: #f8f6fc;
    border-radius: 8px
}

.handoff {
    background: #faf9fd;
    border: 1px solid #e9e4f3;
    border-radius: 12px;
    padding: 14px;
    margin: 0 0 18px;
    text-align: start
}

.handoff>div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    padding: 6px 0
}

.handoff dt {
    color: #81768f;
    flex-shrink: 0
}

.handoff dd {
    margin: 0;
    color: #4d4265;
    font-weight: 600
}

.form-panel:has(#general-entry:not([hidden])) .form-stage {
    padding-top: 28px
}

.screen:has(.publisher-entry:not([hidden])) .terms,
.screen:has(.publisher-note:not([hidden])) .terms {
    margin-top: 18px
}

#mobile::placeholder {
    direction: ltr
}

.logo-crop {
    width: 110px;
    height: 122px;
    overflow: hidden;
    position: relative;
    direction: ltr;
    transform: rotate(8deg)
}

.brand-tile .logo-crop img {
    width: 350px;
    height: 122px;
    max-width: none;
    position: absolute;
    left: 0;
    top: 0;
    object-fit: fill;
    transform: none
}

@media(min-width:901px) {
    .screen#profile-screen h1 {
        font-size: 25px
    }

    .form-panel:has(#profile-screen:not([hidden])) .form-stage {
        padding-top: 25px;
        padding-bottom: 20px
    }

    .screen#profile-screen .intro {
        margin-bottom: 20px
    }

    .screen#profile-screen .field {
        margin-bottom: 15px
    }

    .screen#profile-screen .back {
        margin-bottom: 10px
    }
}

@media(max-width:1000px) and (min-width:761px) {
    .page {
        padding: 30px 20px 20px
    }

    .brand-panel {
        padding: 32px 26px 24px
    }

    .brand-story h2 {
        font-size: 32px
    }

    .brand-story p {
        font-size: 13px
    }

    .form-panel {
        padding: 28px 30px 20px
    }

    .brand-art {
        height: 200px
    }

    .orbit {
        width: 245px
    }

    .dot-one {
        right: 8px
    }

    .dot-two {
        left: 13px
    }
}

@media(max-width:760px) {
    body {
        background: #fff
    }

    .page {
        padding: 0;
        justify-content: flex-start;
        min-height: 100svh
    }

    .auth-shell {
        display: block;
        min-height: 100svh;
        max-width: 520px;
        border: 0;
        border-radius: 0;
        box-shadow: none
    }

    .brand-panel {
        display: none
    }

    .form-panel {
        padding: 28px 28px 18px;
        min-height: 100svh
    }

    .form-top {
        min-height: 44px
    }

    .brand-dark {
        width: 100px
    }

    .form-stage {
        flex: 1;
        align-items: flex-start;
        padding: 62px 0 35px
    }

    .screen {
        max-width: 390px
    }

    h1 {
        font-size: 27px
    }

    .intro {
        font-size: 14px;
        margin-bottom: 30px
    }

    .form-footer {
        font-size: 10px;
        margin-top: 12px;
        flex-wrap: wrap
    }

    .form-panel:has(#profile-screen:not([hidden])) .form-stage {
        padding-top: 28px
    }

    .screen#profile-screen h1 {
        font-size: 24px
    }

    .screen#profile-screen .intro {
        font-size: 13px;
        margin-bottom: 22px
    }

    .screen#profile-screen .back {
        margin-bottom: 14px
    }

    .form-panel:has(#otp-screen:not([hidden])) .form-stage,
    .form-panel:has(#password-screen:not([hidden])) .form-stage {
        padding-top: 30px
    }

    .screen#password-screen .back {
        margin-bottom: 25px
    }

    .terms {
        max-width: none;
        margin-inline: 0
    }

    .field input {
        font-size: 16px
    }

    .number-row bdi {
        letter-spacing: .4px
    }
}

@media(max-width:360px) {
    .form-panel {
        padding: 20px 20px 18px
    }

    .form-stage {
        padding-top: 42px
    }

    .help-button {
        font-size: 11px
    }

    .brand-dark {
        width: 92px
    }

    h1 {
        font-size: 25px
    }

    .intro {
        font-size: 13px
    }

    .resend-row {
        font-size: 11px
    }

    .text-button {
        font-size: 11px
    }

    .terms {
        font-size: 10px
    }

    .screen#profile-screen h1 {
        font-size: 22px
    }

    .field .otp-input {
        font-size: 26px;
        letter-spacing: .35em
    }

    .form-footer {
        gap: 8px
    }
}

@media(max-height:690px) and (max-width:760px) {
    .form-stage {
        padding-top: 30px;
        padding-bottom: 28px
    }

    .terms {
        margin-top: 17px
    }

    .form-footer {
        margin-top: 0
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}