/* assets/css/auth.css - Mobile-first auth UI (steps, inline errors, toast, bottom sheet) */

/* Tokens */
#obs-auth-form,
.obs-ui {
    --obs-primary: #0464d0;
    --obs-primary-hover: #0353b0;
    --obs-primary-soft: #e8f2fe;
    --obs-primary-ring: rgba(4, 100, 208, 0.16);
    --obs-bg: #f3f8fd;
    --obs-surface: #ffffff;
    --obs-surface-muted: #eef3f9;
    --obs-text: #0f1b2d;
    --obs-muted: #5b6b80;
    --obs-subtle: #8a98ab;
    --obs-border: #d5dfeb;
    --obs-danger: #d92d3a;
    --obs-danger-soft: #fdecee;
    --obs-danger-ring: rgba(217, 45, 58, 0.14);
    --obs-success: #0d8a5c;
    --obs-success-soft: #e5f6ee;
    --obs-warning: #b86e00;
    --obs-warning-soft: #fff4e0;
    --obs-radius: 14px;
    --obs-font: "ObsVazirmatn", Vazirmatn, Tahoma, sans-serif;
    font-family: var(--obs-font);
    direction: rtl;
    color: var(--obs-text);
    -webkit-tap-highlight-color: transparent;
}

#obs-auth-form *,
#obs-auth-form *::before,
#obs-auth-form *::after,
.obs-ui *,
.obs-ui *::before,
.obs-ui *::after {
    box-sizing: border-box;
}

#obs-auth-form [hidden],
.obs-ui[hidden],
.obs-ui [hidden] {
    display: none !important;
}

.obs-icon {
    width: 20px;
    height: 20px;
    flex: none;
}

/* Container: full-bleed on phones, card from tablet up */
#obs-auth-form {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 24px 20px;
    text-align: right;
    line-height: 1.7;
    font-size: 15px;
}

@media (min-width: 640px) {
    #obs-auth-form {
        margin: 40px auto;
        padding: 36px 32px 32px;
        background: var(--obs-surface);
        border: 1px solid #e1eaf4;
        border-radius: 24px;
        box-shadow: 0 24px 60px rgba(4, 58, 120, 0.08);
    }
}

/* Steps */
.obs-step {
    display: flex;
    flex-direction: column;
    animation: obs-step-in 0.28s ease both;
}

.obs-step.is-back {
    animation-name: obs-step-back;
}

@keyframes obs-step-in {
    from { opacity: 0; transform: translateX(-14px); }
    to { opacity: 1; transform: none; }
}

@keyframes obs-step-back {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: none; }
}

.obs-step__top {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: -8px 0 12px;
}

#obs-auth-form .obs-icon-btn {
    width: 44px;
    height: 44px;
    margin: 0 -10px 0 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--obs-text);
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

#obs-auth-form .obs-icon-btn:hover,
#obs-auth-form .obs-icon-btn:focus-visible {
    background: var(--obs-primary-soft);
    color: var(--obs-primary);
}

#obs-auth-form .obs-icon-btn .obs-icon {
    width: 24px;
    height: 24px;
}

.obs-auth__logo {
    display: block;
    width: 76px;
    height: 76px;
    margin: 4px auto 18px;
}

#obs-auth-form .obs-step__title {
    margin: 0 0 6px;
    padding: 0;
    color: var(--obs-text);
    font-family: var(--obs-font);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
}

#obs-auth-form .obs-step__sub {
    margin: 0 0 24px;
    color: var(--obs-muted);
    font-size: 14px;
    line-height: 1.9;
}

.obs-step--center .obs-step__title,
.obs-step--center .obs-step__sub {
    text-align: center;
}

.obs-ltr {
    display: inline-block;
    direction: ltr;
    unicode-bidi: isolate;
    color: var(--obs-text);
    font-weight: 700;
}

#obs-auth-form .obs-link,
.obs-ui .obs-link {
    display: inline;
    margin: 0;
    padding: 0 4px;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--obs-primary);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

#obs-auth-form .obs-link:hover,
.obs-ui .obs-link:hover {
    text-decoration: underline;
    background: none;
    color: var(--obs-primary-hover);
}

/* Fields */
.obs-field {
    margin: 0 0 16px;
}

.obs-field__label {
    display: block;
    margin: 0 0 8px;
    color: var(--obs-muted);
    font-size: 13px;
    font-weight: 700;
}

.obs-field__control {
    position: relative;
}

#obs-auth-form .obs-input,
.obs-ui .obs-input {
    display: block;
    width: 100%;
    height: 56px;
    margin: 0;
    padding: 0 16px;
    border: 1.5px solid var(--obs-border);
    border-radius: var(--obs-radius);
    background: var(--obs-surface);
    color: var(--obs-text);
    font: 500 17px/1.4 var(--obs-font);
    text-align: center;
    direction: ltr;
    box-shadow: none;
    outline: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#obs-auth-form .obs-input::placeholder {
    color: var(--obs-subtle);
    font-size: 15px;
    font-weight: 400;
    opacity: 1;
}

#obs-auth-form .obs-input:focus,
.obs-ui .obs-input:focus {
    border-color: var(--obs-primary);
    box-shadow: 0 0 0 4px var(--obs-primary-ring);
}

#obs-auth-form .obs-input--with-action {
    padding-left: 54px;
    padding-right: 54px;
}

#obs-auth-form .obs-field.has-error .obs-input {
    border-color: var(--obs-danger);
    box-shadow: 0 0 0 4px var(--obs-danger-ring);
}

.obs-field__error {
    display: none;
    align-items: flex-start;
    gap: 6px;
    margin: 8px 0 0;
    color: var(--obs-danger);
    font-size: 13px;
    line-height: 1.8;
}

.obs-field__error .obs-icon {
    width: 16px;
    height: 16px;
    margin-top: 3px;
}

.obs-field.has-error .obs-field__error {
    display: flex;
}

.obs-field__hint {
    margin: 8px 0 0;
    color: var(--obs-subtle);
    font-size: 12px;
}

.obs-field.has-error .obs-field__hint {
    display: none;
}

.obs-shake {
    animation: obs-shake 0.36s ease;
}

@keyframes obs-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* Password visibility toggle */
#obs-auth-form .obs-pass-toggle {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--obs-subtle);
    box-shadow: none;
    cursor: pointer;
}

#obs-auth-form .obs-pass-toggle:hover,
#obs-auth-form .obs-pass-toggle:focus-visible {
    background: var(--obs-surface-muted);
    color: var(--obs-text);
}

.obs-pass-toggle .obs-icon--hide,
.obs-pass-toggle[aria-pressed="true"] .obs-icon--show {
    display: none;
}

.obs-pass-toggle[aria-pressed="true"] .obs-icon--hide {
    display: block;
}

/* OTP: one real input laid over six visual cells (keeps paste + SMS autofill working) */
.obs-otp {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    max-width: 360px;
    margin: 0 auto;
    direction: ltr;
}

.obs-otp__cell {
    position: relative;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--obs-border);
    border-radius: 12px;
    background: var(--obs-surface);
    color: var(--obs-text);
    font-size: 24px;
    font-weight: 700;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.obs-otp__cell.is-filled {
    border-color: #9cc2ef;
    background: #f7fbff;
}

.obs-otp.is-focused .obs-otp__cell.is-current {
    border-color: var(--obs-primary);
    box-shadow: 0 0 0 4px var(--obs-primary-ring);
}

.obs-otp.is-focused .obs-otp__cell.is-current:empty::after {
    content: "";
    width: 2px;
    height: 24px;
    border-radius: 2px;
    background: var(--obs-primary);
    animation: obs-caret 1s steps(1) infinite;
}

@keyframes obs-caret {
    50% { opacity: 0; }
}

.obs-field.has-error .obs-otp__cell {
    border-color: var(--obs-danger);
    background: var(--obs-danger-soft);
}

#obs-auth-form .obs-otp__input,
.obs-ui .obs-otp__input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: transparent;
    caret-color: transparent;
    font-size: 16px;
    text-align: center;
    letter-spacing: 0;
    -webkit-appearance: none;
    appearance: none;
    cursor: text;
}

.obs-otp__input::selection {
    background: transparent;
}

.obs-field .obs-otp + .obs-field__error,
#otp-entry .obs-field__error {
    justify-content: center;
    text-align: center;
}

/* Resend row */
.obs-resend {
    min-height: 32px;
    margin: 6px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--obs-muted);
    font-size: 14px;
    text-align: center;
}

.obs-resend__line {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.obs-resend__timer {
    display: inline-block;
    min-width: 44px;
    direction: ltr;
    unicode-bidi: isolate;
    color: var(--obs-text);
    font-weight: 700;
}

/* Contextual note (guest checkout, new account) */
.obs-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--obs-primary-soft);
    color: #0a3f7f;
    font-size: 13px;
    line-height: 1.9;
}

.obs-note .obs-icon {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--obs-primary);
}

/* Checkbox */
.obs-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--obs-muted);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

#obs-auth-form .obs-check input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    flex: none;
    display: grid;
    place-content: center;
    border: 1.5px solid var(--obs-border);
    border-radius: 7px;
    background: var(--obs-surface);
    box-shadow: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

#obs-auth-form .obs-check input[type="checkbox"]::before {
    content: "";
    width: 12px;
    height: 12px;
    background: #fff;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transition: transform 0.12s ease;
}

#obs-auth-form .obs-check input[type="checkbox"]:checked {
    background: var(--obs-primary);
    border-color: var(--obs-primary);
}

#obs-auth-form .obs-check input[type="checkbox"]:checked::before {
    transform: scale(1);
}

#obs-auth-form .obs-check input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 4px var(--obs-primary-ring);
}

/* Buttons */
.obs-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

#obs-auth-form .obs-btn,
.obs-ui .obs-btn {
    position: relative;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: var(--obs-radius);
    box-shadow: none;
    font: 700 16px/1.5 var(--obs-font);
    text-align: center;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
}

#obs-auth-form .obs-btn:active,
.obs-ui .obs-btn:active {
    transform: scale(0.985);
}

#obs-auth-form .obs-btn:focus-visible,
.obs-ui .obs-btn:focus-visible {
    outline: 3px solid var(--obs-primary-ring);
    outline-offset: 2px;
}

#obs-auth-form .obs-btn--primary,
.obs-ui .obs-btn--primary {
    background: var(--obs-primary);
    color: #fff;
}

#obs-auth-form .obs-btn--primary:hover,
.obs-ui .obs-btn--primary:hover {
    background: var(--obs-primary-hover);
    color: #fff;
}

.obs-ui .obs-btn--danger {
    background: var(--obs-danger);
    color: #fff;
}

.obs-ui .obs-btn--danger:hover {
    background: #b9212d;
    color: #fff;
}

#obs-auth-form .obs-btn--secondary,
.obs-ui .obs-btn--secondary {
    background: var(--obs-surface-muted);
    color: var(--obs-text);
}

#obs-auth-form .obs-btn--secondary:hover,
.obs-ui .obs-btn--secondary:hover {
    background: #e2eaf3;
    color: var(--obs-text);
}

#obs-auth-form .obs-btn--ghost {
    min-height: 48px;
    background: transparent;
    color: var(--obs-primary);
}

#obs-auth-form .obs-btn--ghost:hover {
    background: var(--obs-primary-soft);
    color: var(--obs-primary);
}

#obs-auth-form .obs-btn:disabled,
.obs-ui .obs-btn:disabled {
    cursor: default;
    transform: none;
}

#obs-auth-form .obs-btn.is-loading,
.obs-ui .obs-btn.is-loading {
    opacity: 0.85;
}

.obs-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: none;
    border: 2.5px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    vertical-align: middle;
    animation: obs-spin 0.7s linear infinite;
}

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

/* Logged-in notice */
.obs-auth-notice {
    max-width: 440px;
    margin: 24px auto;
    padding: 16px 18px;
    border-radius: 14px;
    background: #e5f6ee;
    color: #0b5e40;
    font-family: "ObsVazirmatn", Vazirmatn, Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.9;
    text-align: center;
    direction: rtl;
}

.obs-auth-notice a {
    color: #0464d0;
    font-weight: 700;
}

/* Toast */
.obs-ui-toasts {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    left: 12px;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.obs-toast {
    width: min(420px, 100%);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 12px 12px 8px;
    border: 1px solid #e1eaf4;
    border-radius: 16px;
    background: var(--obs-surface);
    color: var(--obs-text);
    box-shadow: 0 14px 36px rgba(15, 27, 45, 0.16);
    font-size: 14px;
    line-height: 1.8;
    pointer-events: auto;
    animation: obs-toast-in 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.obs-toast.is-leaving {
    animation: obs-toast-out 0.2s ease forwards;
}

@keyframes obs-toast-in {
    from { opacity: 0; transform: translateY(-14px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@keyframes obs-toast-out {
    to { opacity: 0; transform: translateY(-10px); }
}

.obs-toast__icon {
    width: 26px;
    height: 26px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--obs-primary-soft);
    color: var(--obs-primary);
}

.obs-toast__icon .obs-icon {
    width: 16px;
    height: 16px;
}

.obs-toast--success .obs-toast__icon {
    background: var(--obs-success-soft);
    color: var(--obs-success);
}

.obs-toast--error .obs-toast__icon {
    background: var(--obs-danger-soft);
    color: var(--obs-danger);
}

.obs-toast--warning .obs-toast__icon {
    background: var(--obs-warning-soft);
    color: var(--obs-warning);
}

.obs-toast__text {
    flex: 1;
    padding-top: 1px;
}

.obs-ui .obs-toast__close {
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--obs-subtle);
    box-shadow: none;
    cursor: pointer;
}

.obs-ui .obs-toast__close:hover {
    background: var(--obs-surface-muted);
    color: var(--obs-text);
}

.obs-toast__close .obs-icon {
    width: 16px;
    height: 16px;
}

/* Bottom sheet (dialog on wider screens) */
html.obs-ui-lock,
html.obs-ui-lock body {
    overflow: hidden !important;
}

.obs-sheet {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.obs-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.48);
    animation: obs-fade-in 0.2s ease both;
}

.obs-sheet__panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    background: var(--obs-surface);
    box-shadow: 0 -12px 40px rgba(10, 22, 40, 0.18);
    text-align: center;
    outline: 0;
    animation: obs-sheet-up 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.obs-sheet.is-closing .obs-sheet__backdrop {
    animation: obs-fade-out 0.2s ease forwards;
}

.obs-sheet.is-closing .obs-sheet__panel {
    animation: obs-sheet-down 0.22s ease forwards;
}

@keyframes obs-fade-in {
    from { opacity: 0; }
}

@keyframes obs-fade-out {
    to { opacity: 0; }
}

@keyframes obs-sheet-up {
    from { transform: translateY(100%); }
    to { transform: none; }
}

@keyframes obs-sheet-down {
    to { transform: translateY(100%); }
}

.obs-sheet__grabber {
    width: 40px;
    height: 4px;
    margin: 0 auto 16px;
    border-radius: 4px;
    background: var(--obs-border);
}

.obs-sheet__icon {
    width: 56px;
    height: 56px;
    margin: 4px auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--obs-primary-soft);
    color: var(--obs-primary);
}

.obs-sheet__icon .obs-icon {
    width: 28px;
    height: 28px;
}

.obs-sheet__icon--danger {
    background: var(--obs-danger-soft);
    color: var(--obs-danger);
}

.obs-sheet__icon--success {
    background: var(--obs-success-soft);
    color: var(--obs-success);
}

.obs-sheet__icon--warning {
    background: var(--obs-warning-soft);
    color: var(--obs-warning);
}

.obs-ui .obs-sheet__title {
    margin: 0 0 6px;
    color: var(--obs-text);
    font-family: var(--obs-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
}

.obs-ui .obs-sheet__text {
    margin: 0 0 20px;
    color: var(--obs-muted);
    font-size: 14px;
    line-height: 1.9;
}

.obs-sheet__body {
    margin: 0 0 16px;
}

.obs-sheet__body:empty {
    display: none;
}

.obs-sheet__body .obs-field {
    margin: 0;
    text-align: right;
}

.obs-ui .obs-sheet__error {
    margin: -4px 0 16px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    color: var(--obs-danger);
    font-size: 13px;
    line-height: 1.8;
}

.obs-sheet__error .obs-icon {
    width: 16px;
    height: 16px;
    margin-top: 3px;
}

@media (min-width: 640px) {
    .obs-sheet {
        align-items: center;
        padding: 24px;
    }

    .obs-sheet__panel {
        max-width: 400px;
        padding: 28px 24px 24px;
        border-radius: 24px;
        box-shadow: 0 30px 80px rgba(10, 22, 40, 0.24);
        animation-name: obs-pop-in;
    }

    .obs-sheet.is-closing .obs-sheet__panel {
        animation-name: obs-pop-out;
    }

    .obs-sheet__grabber {
        display: none;
    }

    @keyframes obs-pop-in {
        from { opacity: 0; transform: scale(0.96); }
        to { opacity: 1; transform: none; }
    }

    @keyframes obs-pop-out {
        to { opacity: 0; transform: scale(0.96); }
    }
}

/* Account page: mobile change field */
.obs-ui.obs-inline-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 8px 0 0;
    color: var(--obs-danger);
    font-size: 13px;
    line-height: 1.8;
}

.obs-inline-error .obs-icon {
    width: 16px;
    height: 16px;
    margin-top: 3px;
}

@media (prefers-reduced-motion: reduce) {
    #obs-auth-form *,
    .obs-ui,
    .obs-ui * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Profile Alert */
.obs-profile-alert {
    background: #fff4f4;
    border: 1px solid #eee;
    border-left: 4px solid #d63638;
    color: #a00;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.obs-profile-alert .close-alert {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.obs-profile-alert a {
    color: #d63638;
    text-decoration: underline;
    font-weight: bold;
}

/* User Profile Improvements */
#account_last_name_field {
    display: none !important;
}

.obs-password-hint {
    margin-bottom: 20px;
}

/* My Account dashboard cards */
.obs-account-top-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 24px;
}

.obs-account-stat-card,
.obs-account-banner-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.obs-account-stat-card {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.obs-account-banner-card {
    grid-column: span 2;
    min-height: 110px;
}

.obs-stat-title,
.obs-banner-title {
    color: #475569;
    font-size: 13px;
    display: block;
}

.obs-stat-value {
    color: #0f172a;
    font-size: 28px;
    line-height: 1.1;
}

.obs-account-banner-card p {
    margin: 8px 0 12px;
    color: #1f2937;
}

.obs-banner-link {
    display: inline-block;
    text-decoration: none;
    border: 1px solid #0ea5e9;
    color: #0369a1;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.obs-banner-link:hover {
    background: #0ea5e9;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .obs-account-top-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .obs-account-banner-card {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .obs-account-top-grid {
        grid-template-columns: 1fr;
    }

    .obs-account-banner-card {
        grid-column: span 1;
    }
}

/*
 * HesabBaz app login page (body.hesabbaz-login). Kept with the auth styles so
 * the page stays styled whichever HesabBaz version renders the shell: newer
 * shells print .hesabbaz-login-logo, older ones a letter mark plus a mobile brand.
 */
body.hesabbaz-login {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: #ffffff;
    color: #0f1b2d;
    font-family: "ObsVazirmatn", Vazirmatn, Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.hesabbaz-login-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    direction: rtl;
}

.hesabbaz-login-brand,
.hesabbaz-login-mobile-brand {
    display: none;
}

/* Phone: the whole screen is the form, primary action sits in the thumb zone */
.hesabbaz-login-panel {
    flex: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: max(20px, env(safe-area-inset-top)) 20px max(16px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

body.hesabbaz-login #obs-auth-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.hesabbaz-login #obs-auth-form .obs-step {
    flex: 1;
}

body.hesabbaz-login #obs-auth-form .obs-actions {
    margin-top: auto;
    padding-top: 20px;
}

body.hesabbaz-login #obs-auth-form #step-input {
    padding-top: 7vh;
}

body.hesabbaz-login #obs-auth-form .obs-auth__logo {
    width: 88px;
    height: 88px;
}

.hesabbaz-login-note {
    margin: 12px 0 0;
    color: #8a98ab;
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

.hesabbaz-login-logo,
.hesabbaz-login-brand .hesabbaz-login-mark {
    display: block;
    width: 96px;
    height: 96px;
}

/* Older shells render the letter «ح»; show the logo in its place */
.hesabbaz-login-brand .hesabbaz-login-mark {
    overflow: hidden;
    color: transparent;
    font-size: 0;
    background: url("../img/logo.png") center / contain no-repeat;
}

.hesabbaz-login-brand h1 {
    margin: 24px 0 10px;
    color: #0f1b2d;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.3;
}

.hesabbaz-login-brand > p {
    margin: 0;
    color: #5b6b80;
    font-size: 18px;
    line-height: 1.9;
}

.hesabbaz-login-features {
    margin-top: 32px;
    display: grid;
    gap: 14px;
    color: #24364d;
    font-size: 15px;
}

.hesabbaz-login-features span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hesabbaz-login-features span::before {
    content: "";
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 50%;
    background: #e8f2fe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230464d0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Desktop: brand column + card */
@media (min-width: 900px) {
    body.hesabbaz-login {
        background: #eef5fc;
    }

    .hesabbaz-login-shell {
        width: min(1040px, calc(100% - 48px));
        margin: 0 auto;
        padding: 48px 0;
        box-sizing: border-box;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 440px;
        align-items: center;
        gap: 72px;
    }

    .hesabbaz-login-brand {
        display: block;
    }

    .hesabbaz-login-panel {
        flex: none;
        max-width: none;
        padding: 40px 36px 28px;
        border: 1px solid #e1eaf4;
        border-radius: 28px;
        background: #ffffff;
        box-shadow: 0 30px 70px rgba(4, 58, 120, 0.1);
    }

    body.hesabbaz-login #obs-auth-form .obs-step {
        flex: none;
    }

    body.hesabbaz-login #obs-auth-form .obs-actions {
        margin-top: 8px;
        padding-top: 0;
    }

    body.hesabbaz-login #obs-auth-form #step-input {
        padding-top: 0;
    }

    body.hesabbaz-login #obs-auth-form .obs-auth__logo {
        display: none;
    }
}
