
:root {
    font-family: 'pelak', 'vazir', sans-serif;
    line-height: 1.5;
    font-weight: 400;
    color-scheme: #000;
    background-color: #ffffff;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
    margin:0;
    padding:0;
}

body {
    width: 100vw;
    height: 100vh;
    background: #fff;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

main {
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 24px;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.form {
    padding-right: 24px;
    font-family: vazir;
}

.form__title {
    text-align: center;
    color: #030712;
    font-weight: 600;
    font-size: 30px;
    margin: 0 0 8px;
}

.form__description {
    color: #374151;
    text-align: center;
    margin: 0 0 32px;
}

.form__animation {
    background-color: #f7f8fa;
    border-radius: 24px;
    overflow: hidden;
    /* height: 97%; */
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background: #5e7ba3;
    font-family: auto;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.logo svg {
    width: 24px;
    height: 24px;
}

form {
    width: 100%;
    max-width: 420px;
}

.form-control__label {
    display: block;
    margin: 10px 0 4px;
    color: #0d0c22;
    font-weight: 500;
}

.form-control {
    height: 52px;
    display: block;
    width: 100%;
    border: 1px solid #6b7280;
    padding: 18px 20px;
    transition: outline 200ms ease, box-shadow 200ms ease;
    border-radius: 12px;
    outline: none;
    background-color: #fff;
    color: #0d0c22;
    margin-bottom: 28px;
    font-size: 16px;
}

.form-control:focus {
    border-color: #0d0c22;
    box-shadow: 0 0 0 4px rgb(0 0 0 / 10%);
}

.form-control:user-invalid {
    border-color: #dc2626;
}

.form-control:user-invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgb(220, 38, 38, .1);
}

.password-field {
    position: relative;
}

.password-field svg {
    position: absolute;
    width: 24px;
    height: 24px;
    right: 13px;
    top: 13px;
}

.form__submit {
    height: 52px;
    width: 100%;
    display: block;
    font-family: 'vazir';
    background: #6f9dde;
    border-radius: 100px;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: .2s;
}

.form__submit:hover {
    box-shadow: 0 -1px 10px rgba(13,12,34, 0.3);
}

.password__settings {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
}

.password__settings__remember {
    font-size: 14px;
    color: #0d0c22;
    font-weight: 500;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.password__settings__remember input {
    width: 0;
    height: 0;
    opacity: 0;
    margin: 0;
}

.custom__checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid #6b7280;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.custom__checkbox svg {
    transform: scale(0);
    width: 16px;
    height: 16px;
}

input:focus + .custom__checkbox {
    border-color: #0d0c22;
    box-shadow: 0 0 0 4px rgb(0 0 0 / 10%);
}

input:checked + .custom__checkbox svg {
    transform: scale(1);
}

a {
    font-size: 14px;
    color: #0875e4;
    font-weight: 500;
    text-decoration: none;
}

.form__footer {
    font-size: 14px;
    text-align: center;
    margin: 15px 0 0;
}

.ball {
    width: 300px;
    height: 300px;
    padding: 1px;
    border-radius: 100%;
    background: #ffffff00;
    animation: bounce 3s ease-out forwards;
    transform: translateY(calc(-50vh - 116px));
}

@keyframes bounce {
    5% {
        height: 300px;
        width: 300px;
    }
    10% {
        height: 300px;
        width: 280px;
    }
    15% {
        height: 280px;
        width: 320px;
        transform: translateY(0);
    }
    20%{
        height: 300px;
        width: 320px;
    }
    25% {
        transform: translateY(-200px);
    }
    30% {
        height: 300px;
        width: 300px;
    }
    35% {
        height: 300px;
        width: 280px;
    }
    40% {
        height: 280px;
        width: 320px;
        transform: translateY(0);
    }
    45%{
        height: 300px;
        width: 320px;
    }
    50% {
        transform: translateY(-160);
    }
    55% {
        height: 300px;
        width: 300px;
    }
    60% {
        height: 300px;
        width: 280px;
    }
    65% {
        height: 280px;
        width: 320px;
        transform: translateY(0);
    }
    70%{
        height: 300px;
        width: 320px;
    }
    75% {
        transform: translateY(-60px);
    }
    80% {
        height: 300px;
        width: 280px;
    }
    85% {
        height: 280px;
        width: 320px;
        transform: translateY(-20px);
    }
    90%{
        height: 300px;
        width: 320px;
    }
    100% {
        transform: translateY(0);
    }
}

.ball__eyes {
    display: flex;
    gap: 60px;
    margin-top: 50px;
    justify-content: center;
}

.eye {
    background: #fff;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    padding: 3px;
    display: block;
}

.eye:before {
    content: "";
    width: 15px;
    height: 15px;
    background: #000;
    border-radius: 100%;
    display: block;
}

.ball__mouth {
    width: 30px;
    height: 30px;
    border-radius: 100%;
    background: #000;
    margin: 10px auto;
    clip-path: polygon(100% 50%, 100% 100%, 0 100%, 0 50%);
    transition: .3s;
}

.eye_wrap {
    overflow: hidden;
    animation: blink 5s infinite;
    width: 30px;
    height: 30px;
    transition: .3s;;
}

#face, #ball {
    transition: .3s;
}

#ball.sad .eye_wrap:first-child {
    clip-path: polygon(67% 0, 100% 0, 100% 50%, 100% 100%, 0 100%, 0% 50%);
}

#ball.sad .eye_wrap:last-child {
    clip-path: polygon(0 0, 43% 0, 100% 50%, 100% 100%, 0 100%, 0% 50%);
}

#ball.sad .ball__mouth {
    transform: scaleY(-1.05);
}

#ball.sad {
    animation: shake 1.5s;
}

@keyframes shake {
    0% {
        transform: rotateY(0);
    }
    25% {
        transform: rotateY(-15deg);
    }
    50% {
        transform: rotateY(15deg);
    }
    100% {
        transform: rotateY(0);
    }
}

@keyframes blink {
    0%, 100% {
        transform: scale(1, .05);
    }
    5%,
    95% {
        transform: scale(1, 1);
    }
}

.ball__shadow {
    background: rgb(0 0 0 / 5%);
    box-shadow: 0 0 10px rgb(0 0 0 / 6%);
    height: 20px;
    width: 240px;
    border-radius: 50%;
    transform: scale(0.1);
    animation: shrink 3s forwards;
}

@keyframes shrink {
    5%, 25%, 50%, 75% {
        transform: scale(0.1);
    }
    15%, 40%, 65%, 100% {
        transform: scale(1.1);
    }
}

#ball.look_at {
    transform: rotate(-17deg);
}

@media (max-width: 768px) {
    .form__animation {
        position: fixed;
        background: none;
        right: 0;
        bottom: 0;
    }

    .form__title {
        font-size: 28px;
    }

    .ball {
        width: 100px;
        height: 100px;
        animation: roll_out 1s ease-out forwards;
        transform: translate(103px, 0);
    }

    @keyframes roll_out {
        0% {
            transform: translate(103px, 0) rotate(0);
        }
        100% {
            transform: translate(0, 0) rotate(-360deg);
        }
    }

    .ball__eyes {
        gap: 12px;
        margin-top: 24px;
    }

    .ball__mouth {
        width: 20px;
        height: 20px;
        margin: -1px auto;
    }

    .eye, .eye_wrap {
        width: 20px;
        height: 20px;
    }
    .eye:before {
        width: 10px;
        height: 10px;
    }

    .ball__shadow {
        display: none;
    }

    main {
        display: block;
        padding: 40px 16px;
    }

    .form {
        padding: 0;
        /* height: 100%; */
    }
    .form__submit{
        margin-bottom: 2rem !important;
    }
    .form__description {
        margin-bottom: 16px;
    }

    #face {
        transform: none !important;
    }
}

.status-not-available{
    color: #fa2f2f;
    border: 1px solid;
    padding: 5px;
    border-radius: 10px;
    font-size: 12px;
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #2d2e2e;
}

.toggle-password:hover {
    color: #007bff;
}


span.status-available, span.status-not-available {
    display: block;
    padding: 5px;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
    border-radius: 4px;
    margin-top: 5px;
}

span.status-available {
    background: #e0f5d7;
    color: #449626;
}

span.status-not-available {
    background-color: #ffe6e6;
    color: #ea5252;
}


.cookieConsentContainer {
    z-index: 999;
    width: 350px;
    min-height: 20px;
    padding: 15px 15px 32px 15px;
    overflow: hidden;
    position: fixed;
    bottom: 30px;
    left: 30px;
    border-radius: 4px;
    direction: rtl;
    font-size: 12px;
    background: #ffffff69;
    /* border: 1px solid #e4e4e4; */
    box-shadow: 2px 3px 4px 0 rgba(0, 0, 0, .05);
    /* display: none; */
}

.cookieConsentContainer .cookieDesc p {
    margin: 0;
    padding: 0;
    display: block;
    margin-top: 10px;
    margin-bottom: 17px;
}

.cookieConsentContainer .cookieButton {
    line-height: 1;

}

@media (max-width: 768px) {
    .cookieConsentContainer {
        display: none;
    }
}


a.button.cookieAcceptButton {
    font-size: 12px;
    position: relative;
    padding: 10px 29px;
    background: linear-gradient(-55deg, #857af57d 29%, #aba6e7 29.1%, #a59bff 68%, #a59bff 68.1%);
    font-weight: 500;
    font-family: 'vazir';
    color: #ffffff;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.2));
}

/* ── Auth pages (login / register) ── */

:root {
    --auth-accent: #5b8fd4;
    --auth-accent-2: #6f9dde;
    --auth-accent-dark: #4a7bc4;
    --auth-bg: #f8fafc;
    --auth-surface: #ffffff;
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-border: rgba(15, 23, 42, 0.08);
    --auth-border-strong: rgba(15, 23, 42, 0.12);
    --auth-radius: 20px;
    --auth-radius-sm: 14px;
    --auth-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
    --auth-hero-gradient: linear-gradient(145deg, #4a7bc4 0%, #6f9dde 45%, #8eb5ea 100%);
}

.auth-body {
    min-height: 100vh;
    margin: 0;
    background: var(--auth-bg);
    overflow-x: hidden;
}

.auth-page {
    width: 100%;
    min-height: 100vh;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: 100vh;
}

/* Hero panel */
.auth-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    background: var(--auth-hero-gradient);
    overflow: hidden;
    color: #fff;
}

.auth-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 420px;
    animation: authFadeUp 0.6s ease both;
}

.auth-hero__logo {
    display: inline-flex;
    margin-bottom: 36px;
    text-decoration: none;
}

.auth-hero__logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.auth-hero__title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.auth-hero__text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.88);
}

.auth-hero__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-hero__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
}

.auth-hero__feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.auth-hero__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-hero__orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(2px);
}

.auth-hero__orb--1 {
    width: 320px;
    height: 320px;
    top: -80px;
    right: -60px;
    animation: authFloat 8s ease-in-out infinite;
}

.auth-hero__orb--2 {
    width: 180px;
    height: 180px;
    bottom: 10%;
    left: -40px;
    animation: authFloat 6s ease-in-out infinite reverse;
}

.auth-hero__orb--3 {
    width: 100px;
    height: 100px;
    bottom: 28%;
    right: 18%;
    background: rgba(255, 255, 255, 0.12);
    animation: authFloat 5s ease-in-out infinite 1s;
}

@keyframes authFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form panel */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 40px;
    background: var(--auth-bg);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    animation: authFadeUp 0.5s ease 0.1s both;
}

.auth-logo--mobile {
    display: none;
    justify-content: center;
    margin-bottom: 24px;
    text-decoration: none;
}

.auth-logo--mobile img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.auth-card__head {
    margin-bottom: 28px;
}

.auth-card__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--auth-text);
    text-align: center;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.auth-card__body {
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: 0;
    padding: 28px 24px 24px;
    box-shadow: var(--auth-shadow);
}

/* Step indicator */
.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
}

.auth-steps__item {
    display: flex;
    align-items: center;
}

.auth-steps__dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: #e2e8f0;
    color: var(--auth-muted);
    transition: background 0.25s, color 0.25s, transform 0.25s;
}

.auth-steps__item--active .auth-steps__dot {
    background: linear-gradient(135deg, var(--auth-accent-2), var(--auth-accent));
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(91, 143, 212, 0.35);
}

.auth-steps__item--done .auth-steps__dot {
    background: #ecfdf5;
    color: #059669;
}

.auth-steps__check {
    font-size: 16px;
    line-height: 1;
}

.auth-steps__line {
    width: 48px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 6px;
}

.auth-steps__item--done .auth-steps__line {
    background: #6ee7b7;
}

/* Form elements */
.auth-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    text-align: start;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-input-wrap,
.auth-password {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 16px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
    width: 20px;
    text-align: center;
}

.auth-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1.5px solid var(--auth-border-strong);
    border-radius: var(--auth-radius-sm);
    font-size: 15px;
    color: var(--auth-text);
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
    text-align: start;
}

.auth-input--icon {
    padding-inline-start: 48px;
}

.auth-input::placeholder {
    color: #cbd5e1;
}

.auth-input:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.auth-input:focus {
    border-color: var(--auth-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(111, 157, 222, 0.12);
}

.auth-input--otp {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    font-weight: 600;
    height: 56px;
    padding-inline: 16px;
    direction: ltr;
}

.auth-password .auth-input--icon {
    padding-inline-end: 48px;
}

.auth-password__toggle {
    position: absolute;
    inset-inline-end: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 16px;
    padding: 8px;
    z-index: 1;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.auth-password__toggle:hover {
    color: var(--auth-accent);
    background: rgba(111, 157, 222, 0.08);
}

.auth-hint {
    display: block;
    font-size: 12px;
    color: var(--auth-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.auth-remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
    font-weight: 500;
    user-select: none;
}

.auth-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.auth-checkbox__box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}

.auth-checkbox__box::after {
    content: '✓';
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.15s, transform 0.15s;
}

.auth-checkbox input:checked + .auth-checkbox__box {
    background: var(--auth-accent);
    border-color: var(--auth-accent);
}

.auth-checkbox input:checked + .auth-checkbox__box::after {
    opacity: 1;
    transform: scale(1);
}

.auth-checkbox input:focus-visible + .auth-checkbox__box {
    box-shadow: 0 0 0 3px rgba(111, 157, 222, 0.2);
}

.auth-forgot {
    font-size: 14px;
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-forgot:hover {
    text-decoration: underline;
}

.auth-btn {
    height: 52px;
    border: none;
    border-radius: var(--auth-radius-sm);
    background: linear-gradient(135deg, var(--auth-accent-2), var(--auth-accent));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
    box-shadow: 0 4px 14px rgba(91, 143, 212, 0.3);
}

.auth-btn:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(91, 143, 212, 0.4);
    transform: translateY(-1px);
}

.auth-btn:active:not(:disabled) {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.auth-btn__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin 0.7s linear infinite;
}

@keyframes authSpin {
    to { transform: rotate(360deg); }
}

.auth-btn--ghost {
    background: #f1f5f9;
    color: #475569;
    box-shadow: none;
}

.auth-btn--ghost:hover:not(:disabled) {
    background: #e2e8f0;
    box-shadow: none;
    transform: none;
}

.auth-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.auth-actions .auth-btn {
    flex: 1;
    margin-top: 0;
}

.auth-divider {
    height: 1px;
    background: var(--auth-border);
    margin: 20px 0 16px;
}

.auth-error {
    display: block;
    font-size: 13px;
    color: #dc2626;
    margin-top: 6px;
    line-height: 1.4;
}

.auth-error--block {
    background: #fef2f2;
    border-radius: var(--auth-radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: center;
    border: 1px solid #fecaca;
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--auth-muted);
    margin: 0;
    line-height: 1.6;
}

.auth-footer a {
    color: var(--auth-accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-link-btn {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--auth-accent);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    margin-top: 12px;
    padding: 10px;
    border-radius: var(--auth-radius-sm);
    transition: background 0.2s;
}

.auth-link-btn:hover:not(:disabled) {
    background: rgba(111, 157, 222, 0.08);
}

.auth-link-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-dev-otp {
    display: block;
    font-size: 12px;
    color: #92400e;
    margin-top: 8px;
    padding: 10px 12px;
    background: #fef3c7;
    border-radius: var(--auth-radius-sm);
    border: 1px solid #fcd34d;
    text-align: center;
}

.auth-success {
    text-align: center;
    padding: 8px 0;
}

.auth-success__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.15);
}

.auth-success .auth-btn {
    max-width: 280px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 960px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        display: none;
    }

    .auth-panel {
        padding: 24px 20px;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: max(24px, env(safe-area-inset-top));
    }

    .auth-logo--mobile {
        display: flex;
    }

    .auth-card__body {
        padding: 24px 20px 20px;
    }
}

@media (max-width: 480px) {
    .auth-card__title {
        font-size: 1.4rem;
    }

    .auth-input {
        height: 48px;
        font-size: 16px;
    }

    .auth-input--otp {
        height: 52px;
        font-size: 1.25rem;
        letter-spacing: 0.35em;
    }

    .auth-btn {
        height: 48px;
    }

    .auth-steps__dot {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .auth-steps__line {
        width: 32px;
    }

    .auth-field {
        margin-bottom: 16px;
    }

    .auth-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
}

@media (max-height: 720px) and (min-width: 961px) {
    .auth-hero {
        padding: 32px 40px;
    }

    .auth-hero__logo {
        margin-bottom: 24px;
    }

    .auth-hero__text {
        margin-bottom: 24px;
    }

    .auth-panel {
        padding: 24px 32px;
    }
}

/* RTL support */
[dir="rtl"] .auth-body,
[dir="rtl"] .auth-page,
[dir="rtl"] .auth-card {
    font-family: 'vazir', 'pelak', sans-serif;
}

[dir="rtl"] .auth-input--otp {
    letter-spacing: 0.4em;
}