﻿*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

    body.auth-body {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
        color: var(--dorsan-text);
        background: var(--dorsan-surface);
        font-family: var(--dorsan-font);
        direction: rtl;
    }

.auth-shell {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(440px, 33vw, 560px);
    overflow: hidden;
    background: var(--dorsan-surface);
    direction: ltr;
}

/* Hero */

.auth-hero {
    position: relative;
    grid-column: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #294a43;
}

.auth-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.auth-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(45, 116, 106, .20);
    pointer-events: none;
}

.auth-hero::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 1px;
    content: "";
    background: rgba(255, 255, 255, .16);
    pointer-events: none;
}

.auth-hero-accessible {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Form side */

.auth-form-side {
    position: relative;
    z-index: 5;
    grid-column: 2;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 42px clamp(34px, 3vw, 54px);
    background: #fbfefd;
    box-shadow: -18px 0 48px rgba(30, 82, 74, .07);
    direction: rtl;
}

    .auth-form-side::before {
        position: absolute;
        top: -155px;
        left: -145px;
        width: 270px;
        height: 270px;
        content: "";
        border: 1px solid rgba(var(--dorsan-primary-rgb), .22);
        border-radius: 50%;
        pointer-events: none;
    }

    .auth-form-side::after {
        position: absolute;
        left: 34px;
        bottom: 32px;
        width: 5px;
        height: 5px;
        content: "";
        background: var(--dorsan-accent);
        border-radius: 50%;
        opacity: .55;
        box-shadow: 13px 0 var(--dorsan-accent), 26px 0 var(--dorsan-accent), 39px 0 var(--dorsan-accent), 0 13px var(--dorsan-accent), 13px 13px var(--dorsan-accent), 26px 13px var(--dorsan-accent), 39px 13px var(--dorsan-accent);
        pointer-events: none;
    }

.auth-form-container {
    position: relative;
    z-index: 2;
    width: min(100%, 420px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Brand */

.auth-brand {
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .auth-brand img {
        width: auto;
        height: 46px;
        max-width: 180px;
        display: block;
        object-fit: contain;
    }

.auth-page-content {
    width: 100%;
}

/* Responsive */

@media (max-width: 1199.98px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr) clamp(420px, 38vw, 500px);
    }

    .auth-form-side {
        padding-inline: 36px;
    }
}

@media (max-width: 991.98px) {
    body.auth-body {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow-y: auto;
    }

    .auth-shell {
        min-height: 100vh;
        min-height: 100dvh;
        display: block;
    }

    .auth-hero {
        display: none;
    }

    .auth-form-side {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 32px 24px;
        box-shadow: none;
    }

    .auth-form-container {
        width: min(100%, 430px);
    }
}

@media (max-width: 575.98px) {
    .auth-form-side {
        padding: 24px 17px;
    }

        .auth-form-side::before {
            top: -175px;
            left: -175px;
        }

        .auth-form-side::after {
            display: none;
        }

    .auth-form-container {
        gap: 10px;
    }

    .auth-brand {
        height: 40px;
    }

        .auth-brand img {
            height: 40px;
            max-width: 158px;
        }
}

@media (max-height: 720px) and (min-width: 992px) {
    .auth-form-side {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .auth-form-container {
        gap: 9px;
    }

    .auth-brand {
        height: 38px;
    }

        .auth-brand img {
            height: 38px;
            max-width: 150px;
        }
}

@media (prefers-reduced-motion: reduce) {
    .auth-hero-image {
        transform: none;
        transition: none;
    }
}

.ps-1 {
    padding-right: 0.25rem;
}

.ps-2 {
    padding-right: 0.5rem;
}

.ps-3 {
    padding-right: 1rem;
}

.ps-4 {
    padding-right: 1.5rem;
}

.ps-5 {
    padding-right: 3rem;
}

/* ==========================================================================
   Auth pages (login + register) - shared components
   ========================================================================== */

.auth-panel {
    position: relative;
    width: 100%;
    isolation: isolate;
}

    .auth-panel::before,
    .auth-panel::after {
        position: absolute;
        z-index: 0;
        display: none;
        content: "";
        pointer-events: none;
    }

.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 28px 28px 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(var(--dorsan-primary-rgb), .18);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(39, 96, 87, .07);
}

.auth-card-accent {
    position: absolute;
    top: 0;
    right: 28px;
    width: 48px;
    height: 4px;
    background: var(--dorsan-accent);
    border-radius: 0 0 999px 999px;
}

/* Header */

.auth-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    position: sticky;
    top: 0;
    background-color: var(--dorsan-surface);
    z-index: 1;
}

.auth-header-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    color: var(--dorsan-primary-dark);
    background: var(--dorsan-primary-soft);
    border: 1px solid rgba(var(--dorsan-primary-rgb), .28);
    border-radius: 15px;
    font-size: 1.15rem;
}

.auth-header-icon--accent {
    color: var(--dorsan-accent-deep);
    background: var(--dorsan-accent-soft);
    border-color: rgba(223, 121, 95, .25);
}

.auth-header-icon--violet {
    color: #5c3d99;
    background: #f0ebfc;
    border-color: rgba(130, 90, 200, .2);
}

.auth-header-content {
    min-width: 0;
}

.auth-header h1 {
    margin: 0 0 4px;
    color: var(--dorsan-heading);
    font-size: 1.3rem;
    font-weight: 750;
    line-height: 1.55;
}

.auth-header p {
    margin: 0;
    color: var(--dorsan-muted);
    font-size: .74rem;
    line-height: 1.9;
}

.auth-form {
    width: 100%;
}

/* Fields */

.auth-field {
    margin-bottom: 15px;
}

.auth-label {
    display: block;
    margin-bottom: 7px;
    color: #526762;
    font-size: .76rem;
    font-weight: 650;
    line-height: 1.7;
    transition: color var(--dorsan-transition);
}

.auth-control {
    position: relative;
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fcfefd;
    border: 1px solid var(--dorsan-border);
    border-radius: 13px;
    transition: background-color var(--dorsan-transition), border-color var(--dorsan-transition), box-shadow var(--dorsan-transition);
}

    .auth-control:hover {
        background: #fff;
        border-color: rgba(var(--dorsan-primary-rgb), .62);
    }

    .auth-control:has(.input-validation-error) {
        border-color: rgba(200, 95, 81, .7);
        box-shadow: 0 0 0 3px rgba(200, 95, 81, .07);
    }

.auth-control-icon {
    position: absolute;
    right: 15px;
    z-index: 2;
    width: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #88a09b;
    font-size: .95rem;
    pointer-events: none;
    transition: color var(--dorsan-transition);
}

.auth-input {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 0 46px;
    color: var(--dorsan-text);
    background: transparent;
    border: 0;
    border-radius: inherit;
    outline: 0;
    box-shadow: none;
    font-family: inherit;
    font-size: .81rem;
    font-weight: 500;
    direction: ltr;
    text-align: left;
}

    .auth-input::placeholder {
        color: #a4b4b1;
        font-weight: 400;
        text-align: left;
    }

    .auth-input:-webkit-autofill,
    .auth-input:-webkit-autofill:hover,
    .auth-input:-webkit-autofill:focus,
    .auth-input:-webkit-autofill:active {
        -webkit-text-fill-color: var(--dorsan-text) !important;
        -webkit-box-shadow: 0 0 0 1000px #fcfefd inset !important;
        caret-color: var(--dorsan-text);
        transition: background-color 9999s ease-out 0s;
    }

.auth-input--right {
    text-align: right;
}

    .auth-input--right::placeholder {
        text-align: right;
    }

.auth-input--plain {
    padding: 0 14px;
}

    .auth-input--plain:not([dir="ltr"]) {
        direction: rtl;
        text-align: right;
    }

.auth-password-input {
    padding-left: 50px;
}

.auth-field:focus-within .auth-label {
    color: var(--dorsan-accent-deep);
}

.auth-field:focus-within .auth-control {
    background: #fff;
    border-color: var(--dorsan-accent);
    box-shadow: 0 0 0 4px var(--dorsan-accent-ring);
}

.auth-field:focus-within .auth-control-icon {
    color: var(--dorsan-accent-deep);
}

.auth-field:focus-within .auth-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
}

.auth-password-toggle {
    position: absolute;
    left: 7px;
    z-index: 3;
    width: 37px;
    height: 37px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #819792;
    background: transparent;
    border: 0;
    border-radius: 9px;
    outline: 0;
    cursor: pointer;
    transition: color var(--dorsan-transition), background-color var(--dorsan-transition);
}

    .auth-password-toggle:hover {
        color: var(--dorsan-primary-dark);
        background: var(--dorsan-primary-soft);
    }

    .auth-password-toggle:focus-visible {
        outline: 2px solid rgba(var(--dorsan-primary-rgb), .55);
        outline-offset: 1px;
    }

.password-hide-icon {
    display: none;
}

.auth-password-toggle.is-visible .password-show-icon {
    display: none;
}

.auth-password-toggle.is-visible .password-hide-icon {
    display: inline-block;
}

.auth-validation {
    display: block;
    margin-top: 5px;
    color: var(--dorsan-danger);
    font-size: .68rem;
    line-height: 1.6;
}

    .auth-validation:empty,
    .field-validation-valid {
        display: none;
    }

.auth-validation--center {
    text-align: center;
}

.auth-validation-summary {
    margin: 0 0 15px;
    padding: 10px 12px;
    color: var(--dorsan-danger);
    background: var(--dorsan-danger-soft);
    border: 1px solid rgba(200, 95, 81, .22);
    border-radius: 11px;
    font-size: .7rem;
    line-height: 1.8;
}

    .auth-validation-summary.validation-summary-valid,
    .auth-validation-summary:empty {
        display: none;
    }

    .auth-validation-summary ul {
        margin: 0;
        padding-right: 18px;
    }

.auth-error-banner {
    display: none;
    margin: 0 0 12px;
    padding: 10px 12px;
    color: var(--dorsan-danger);
    background: var(--dorsan-danger-soft);
    border: 1px solid rgba(200, 95, 81, .25);
    border-radius: 10px;
    font-size: .74rem;
    line-height: 1.8;
}

    .auth-error-banner.is-visible {
        display: block;
    }

.auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Gender (segmented radio) */

.auth-segment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.auth-segment-option {
    position: relative;
    display: block;
}

    .auth-segment-option input {
        position: absolute;
        inset: 0;
        z-index: 2;
        width: 100%;
        height: 100%;
        margin: 0;
        opacity: 0;
        cursor: pointer;
    }

    .auth-segment-option span {
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        color: var(--dorsan-muted);
        background: #fcfefd;
        border: 1px solid var(--dorsan-border);
        border-radius: 13px;
        font-size: .78rem;
        font-weight: 650;
        transition: color var(--dorsan-transition), background-color var(--dorsan-transition), border-color var(--dorsan-transition), box-shadow var(--dorsan-transition);
    }

    .auth-segment-option input:hover + span {
        background: #fff;
        border-color: rgba(var(--dorsan-primary-rgb), .62);
    }

    .auth-segment-option input:checked + span {
        color: var(--dorsan-primary-dark);
        background: var(--dorsan-primary-soft);
        border-color: var(--dorsan-primary);
    }

    .auth-segment-option input:focus-visible + span {
        border-color: var(--dorsan-accent);
        box-shadow: 0 0 0 4px var(--dorsan-accent-ring);
    }

/* Options row, links, checkbox */

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 3px 0 19px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dorsan-muted);
    font-size: .71rem;
    cursor: pointer;
    user-select: none;
}

    .auth-checkbox input {
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: var(--dorsan-primary-deep);
        cursor: pointer;
    }

.auth-link {
    color: var(--dorsan-primary-deep);
    font-size: .71rem;
    font-weight: 650;
    text-decoration: none;
    transition: color var(--dorsan-transition);
}

    .auth-link:hover {
        color: var(--dorsan-primary-dark);
    }

.auth-link-btn {
    padding: 0;
    color: var(--dorsan-muted);
    background: none;
    border: 0;
    font-family: inherit;
    font-size: .77rem;
    text-decoration: underline;
    cursor: pointer;
}

.auth-center {
    margin-top: 12px;
    text-align: center;
}

.auth-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 16px;
    color: var(--dorsan-muted);
    font-size: .71rem;
}

    .auth-alt a {
        color: var(--dorsan-primary-deep);
        font-weight: 750;
        text-decoration: none;
        transition: color var(--dorsan-transition);
    }

        .auth-alt a:hover {
            color: var(--dorsan-primary-dark);
        }

.auth-note {
    margin: 4px 0 14px;
    color: var(--dorsan-muted);
    font-size: .74rem;
    line-height: 1.9;
    text-align: center;
}

    .auth-note a {
        color: var(--dorsan-primary-deep);
        font-weight: 700;
    }

/* Submit */

.auth-submit {
    position: relative;
    width: 100%;
    height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    overflow: hidden;
    color: var(--dorsan-heading);
    background: var(--dorsan-primary);
    border: 1px solid var(--dorsan-primary);
    border-radius: 13px;
    outline: 0;
    box-shadow: 0 10px 23px rgba(var(--dorsan-primary-rgb), .23);
    font-family: inherit;
    font-size: .81rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--dorsan-transition), border-color var(--dorsan-transition), box-shadow var(--dorsan-transition), transform var(--dorsan-transition), opacity var(--dorsan-transition);
}

.auth-submit-icon {
    font-size: .85rem;
    transition: transform var(--dorsan-transition), opacity var(--dorsan-transition);
}

.auth-submit:hover:not(:disabled) {
    color: var(--dorsan-heading);
    background: var(--dorsan-primary-hover);
    border-color: var(--dorsan-primary-hover);
    box-shadow: 0 13px 27px rgba(var(--dorsan-primary-rgb), .29);
    transform: translateY(-1px);
}

    .auth-submit:hover:not(:disabled) .auth-submit-icon {
        transform: translateX(-2px);
    }

.auth-submit:active:not(:disabled) {
    transform: none;
}

.auth-submit:focus-visible {
    outline: 3px solid rgba(var(--dorsan-primary-rgb), .3);
    outline-offset: 2px;
}

.auth-submit:disabled {
    cursor: wait;
}

.auth-submit.is-loading > * {
    opacity: .22;
}

.auth-submit.is-loading::after {
    position: absolute;
    width: 19px;
    height: 19px;
    content: "";
    border: 2px solid rgba(23, 63, 57, .25);
    border-top-color: var(--dorsan-heading);
    border-radius: 50%;
    animation: auth-submit-spin .7s linear infinite;
}

@keyframes auth-submit-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Back to site */

.auth-back-row {
    position: relative;
    z-index: 4;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.auth-back {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    color: var(--dorsan-muted);
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--dorsan-border);
    border-radius: 11px;
    box-shadow: 0 8px 20px rgba(40, 100, 91, .05);
    font-size: .72rem;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--dorsan-transition), background-color var(--dorsan-transition), border-color var(--dorsan-transition), box-shadow var(--dorsan-transition), transform var(--dorsan-transition);
}

    .auth-back i {
        color: var(--dorsan-primary-deep);
    }

    .auth-back:hover {
        color: var(--dorsan-primary-deep);
        background: var(--dorsan-primary-soft);
        border-color: var(--dorsan-primary);
        box-shadow: 0 10px 22px rgba(40, 100, 91, .08);
        transform: translateY(-1px);
    }

    .auth-back:active {
        transform: none;
    }

/* ==========================================================================
   Register only: steps, OTP, password strength, success
   ========================================================================== */

.register-steps {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

.register-step {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
}

    .register-step:last-child {
        flex: 0 0 auto;
    }

.register-step-num {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    color: var(--dorsan-muted);
    background: #fff;
    border: 2px solid var(--dorsan-border);
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 750;
    transition: all .25s ease;
}

.register-step.is-active .register-step-num {
    color: var(--dorsan-primary-dark);
    background: var(--dorsan-primary-soft);
    border-color: var(--dorsan-primary);
}

.register-step.is-done .register-step-num {
    color: var(--dorsan-primary-dark);
    background: var(--dorsan-primary);
    border-color: var(--dorsan-primary);
}

.register-step-label {
    margin-right: 6px;
    color: var(--dorsan-muted);
    font-size: .68rem;
    font-weight: 600;
    white-space: nowrap;
}

.register-step.is-active .register-step-label {
    color: var(--dorsan-primary-dark);
}

.register-step.is-done .register-step-label {
    color: var(--dorsan-primary-deep);
}

.register-step-connector {
    position: relative;
    flex: 1;
    height: 2px;
    margin: 0 4px;
    background: var(--dorsan-border);
    transition: background .3s ease;
}

    .register-step-connector.is-done {
        background: var(--dorsan-primary);
    }

.register-step-panel {
    display: none;
    max-height: 55vh;
    overflow-y: auto;
    position: relative;
}

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

.otp-phone-hint {
    display: block;
    margin-bottom: 16px;
    color: var(--dorsan-muted);
    font-size: .78rem;
    line-height: 1.9;
    text-align: center;
}

    .otp-phone-hint strong {
        display: inline-block;
        color: var(--dorsan-text);
        direction: ltr;
    }

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
    direction: ltr;
}

.otp-input {
    width: 48px;
    height: 54px;
    color: var(--dorsan-heading);
    background: #fcfefd;
    border: 1px solid var(--dorsan-border);
    border-radius: 12px;
    outline: 0;
    caret-color: var(--dorsan-accent);
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    transition: border-color .18s ease, box-shadow .18s ease;
}

    .otp-input:focus {
        background: #fff;
        border-color: var(--dorsan-accent);
        box-shadow: 0 0 0 4px var(--dorsan-accent-ring);
    }

    .otp-input.is-filled {
        background: var(--dorsan-primary-soft);
        border-color: var(--dorsan-primary);
    }

.otp-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px 0 16px;
    color: var(--dorsan-muted);
    font-size: .78rem;
}

.otp-timer-count {
    color: var(--dorsan-accent-deep);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

.otp-resend-btn {
    display: none;
    padding: 0;
    color: var(--dorsan-primary-deep);
    background: none;
    border: 0;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

    .otp-resend-btn.is-visible {
        display: inline;
    }

.password-strength {
    display: none;
    margin-top: 8px;
}

.password-strength-bar {
    height: 4px;
    margin-bottom: 4px;
    overflow: hidden;
    background: var(--dorsan-border);
    border-radius: 999px;
}

.password-strength-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    transition: width .3s ease, background .3s ease;
}

.password-strength-fill--weak {
    width: 33%;
    background: var(--dorsan-danger);
}

.password-strength-fill--medium {
    width: 66%;
    background: var(--dorsan-warning);
}

.password-strength-fill--strong {
    width: 100%;
    background: var(--dorsan-primary-deep);
}

.password-strength-label {
    color: var(--dorsan-muted);
    font-size: .7rem;
}

.auth-success {
    display: none;
    padding: 16px 0 8px;
    text-align: center;
}

    .auth-success.is-visible {
        display: block;
    }

.auth-success-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--dorsan-primary-dark);
    background: var(--dorsan-primary-soft);
    border: 2px solid rgba(var(--dorsan-primary-rgb), .4);
    border-radius: 50%;
    font-size: 1.6rem;
}

.auth-success h2 {
    margin: 0 0 8px;
    color: var(--dorsan-heading);
    font-size: 1.15rem;
    font-weight: 750;
}

.auth-success p {
    margin: 0 0 20px;
    color: var(--dorsan-muted);
    font-size: .82rem;
    line-height: 1.9;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992.98px) {
    .auth-panel {
        padding: 22px 7px 4px;
    }

        .auth-panel::before {
            top: 4px;
            left: 6px;
            display: block;
            width: 60px;
            height: 45px;
            background: radial-gradient(circle, rgba(223, 121, 95, .75) 3px, transparent 3.5px) 0 0 / 15px 15px;
        }

        .auth-panel::after {
            right: 14px;
            bottom: 52px;
            display: block;
            width: 61px;
            height: 13px;
            background: rgba(223, 121, 95, .88);
            border-radius: 7px;
            box-shadow: -6px 20px 0 -3px rgba(223, 121, 95, .45);
            transform: rotate(-12deg);
        }

    .auth-card {
        padding: 22px 19px 19px;
        background: rgba(255, 255, 255, .70);
        border-color: rgba(var(--dorsan-primary-rgb), .38);
        border-radius: 21px;
        box-shadow: 0 18px 46px rgba(39, 96, 87, .12);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .auth-card-accent {
        right: 20px;
    }

    .auth-header {
        gap: 11px;
        margin-bottom: 20px;
    }

    .auth-header-icon {
        width: 45px;
        height: 45px;
        flex-basis: 45px;
        border-radius: 13px;
    }

    .auth-header h1 {
        font-size: 1.15rem;
    }

    .auth-header p {
        color: #687d79;
        font-size: .7rem;
    }

    .auth-label {
        color: #49615c;
    }

    .auth-control,
    .auth-control:hover,
    .auth-field:focus-within .auth-control {
        background: #fff;
    }

    .auth-input:-webkit-autofill,
    .auth-input:-webkit-autofill:hover,
    .auth-input:-webkit-autofill:focus,
    .auth-input:-webkit-autofill:active,
    .auth-field:focus-within .auth-input:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    }

    .auth-control,
    .auth-submit,
    .auth-segment-option span {
        height: 38px;
    }

    .auth-back-row {
        margin-top: 15px;
    }

    .auth-back {
        min-height: 38px;
        background: rgba(255, 255, 255, .82);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
}

@media (max-width: 480px) {
    .auth-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .otp-input {
        width: 42px;
        height: 50px;
    }
}

@media (max-width: 390px) {
    .auth-panel {
        padding-inline: 2px;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }
}

@media (max-height: 720px) and (min-width: 992px) {
    .auth-card {
        padding: 20px 23px 17px;
    }

    .auth-header {
        margin-bottom: 16px;
    }

    .auth-header-icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
    }

    .auth-header h1 {
        font-size: 1.14rem;
    }

    .auth-field {
        margin-bottom: 10px;
    }

    .auth-control,
    .auth-submit,
    .auth-segment-option span {
        height: 38px;
    }

    .auth-options {
        margin-bottom: 13px;
    }

    .auth-alt {
        margin-top: 10px;
    }

    .auth-back-row {
        margin-top: 9px;
    }

    .auth-back {
        min-height: 35px;
    }
}
