/* === css/auth/entry.css === */
.auth-experience {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(470px, 0.82fr);
    grid-template-areas: 'visual panel';
    gap: 1rem;
    align-items: stretch;
    min-height: 0;
    height: min(840px, calc(100vh - 7.2rem));
    border-radius: 2.8rem;
    overflow: visible;
}

.auth-experience__visual {
    grid-area: visual;
    position: relative;
    min-height: 100%;
}

.auth-visual-layer {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.auth-visual-layer__badge,
.auth-floating-card,
.auth-visual-security,
.auth-panel-card,
.auth-form-card {
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.auth-visual-layer__badge {
    position: absolute;
    top: 5.3rem;
    left: 56%;
    display: inline-flex;
    align-items: center;
    padding: 0.72rem 1.05rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(182, 167, 231, 0.34);
    box-shadow: 0 18px 45px rgba(137, 112, 211, 0.12);
    color: var(--fy-primary);
    font-weight: 700;
    z-index: 2;
}

.auth-floating-card {
    position: absolute;
    width: 170px;
    padding: 0.85rem 0.95rem;
    border-radius: 1.45rem;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(196, 180, 234, 0.4);
    box-shadow: 0 20px 42px rgba(125, 94, 245, 0.1);
    z-index: 2;
}

.auth-floating-card strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
    color: var(--fy-primary);
}

.auth-floating-card span,
.auth-visual-copy p,
.auth-panel-card>p {
    color: rgba(58, 49, 83, 0.72);
}

.auth-floating-card--top {
    top: 11.8rem;
    right: 3.8rem;
}

.auth-floating-card--middle {
    top: 21rem;
    right: 2.8rem;
}

.auth-floating-card--bottom {
    top: 30.2rem;
    right: 3.6rem;
}

.auth-visual-copy {
    position: absolute;
    left: 2.5rem;
    bottom: 8rem;
    width: min(330px, calc(100% - 5rem));
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    z-index: 2;
}

.auth-visual-copy h2 {
    margin: 0 0 0.7rem;
    font-size: clamp(2.6rem, 1.6rem + 1.5vw, 3.9rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    color: #2f2553;
}

.auth-visual-copy p {
    max-width: 18ch;
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(58, 49, 83, 0.9);
}

.auth-visual-security {
    position: absolute;
    left: 2.5rem;
    bottom: 2.7rem;
    display: grid;
    gap: 0.2rem;
    min-width: 190px;
    padding: 0.92rem 1.05rem;
    border-radius: 1.45rem;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(196, 180, 234, 0.4);
    box-shadow: 0 20px 42px rgba(125, 94, 245, 0.1);
    z-index: 2;
}

.auth-visual-security strong {
    font-size: 0.98rem;
}

.auth-visual-security span:last-child {
    font-size: 0.82rem;
    color: rgba(58, 49, 83, 0.7);
}

.auth-experience__panel {
    grid-area: panel;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.25rem 1rem 1.25rem 0;
}

html[dir='rtl'] .app-shell--auth .app-shell__background {
    background:
        linear-gradient(270deg, rgba(249, 245, 255, 0.24) 0%, rgba(247, 243, 255, 0.06) 42%, rgba(252, 249, 255, 0.52) 100%);
}

html[dir='rtl'] .app-shell--auth .app-shell__background::after {
    transform: scaleX(-1);
}

html[dir='rtl'] .auth-experience {
    grid-template-columns: minmax(460px, 0.78fr) minmax(0, 1.22fr);
    grid-template-areas: 'panel visual';
}

html[dir='rtl'] .auth-visual-layer__badge {
    left: auto;
    right: 56%;
}

html[dir='rtl'] .auth-floating-card--top {
    right: auto;
    left: 3.8rem;
}

html[dir='rtl'] .auth-floating-card--middle {
    right: auto;
    left: 2.8rem;
}

html[dir='rtl'] .auth-floating-card--bottom {
    right: auto;
    left: 3.6rem;
}

html[dir='rtl'] .auth-visual-copy {
    left: auto;
    right: 2.5rem;
    text-align: right;
}

html[dir='rtl'] .auth-visual-security {
    left: auto;
    right: 2.5rem;
}

.auth-panel-card {
    width: min(500px, 100%);
    max-height: 100%;
    padding: 1.9rem 1.75rem 1.45rem;
    border-radius: 2.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(212, 200, 238, 0.52);
    box-shadow: 0 32px 80px rgba(108, 85, 171, 0.14);
}

.auth-panel-card__icon {
    width: 4.8rem;
    height: 4.8rem;
    margin: 0 auto 0.95rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.1) 45%),
        linear-gradient(135deg, rgba(136, 101, 251, 0.18), rgba(193, 169, 255, 0.42));
    border: 1px solid rgba(173, 149, 237, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 16px 42px rgba(135, 105, 214, 0.18);
    position: relative;
}

.auth-panel-card__icon::before,
.auth-panel-card__icon::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid rgba(128, 90, 239, 0.92);
}

.auth-panel-card__icon::before {
    top: 1.05rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
}

.auth-panel-card__icon::after {
    top: 2.45rem;
    width: 2rem;
    height: 1.05rem;
    border-radius: 1rem 1rem 0.8rem 0.8rem;
    border-top-left-radius: 1.2rem;
    border-top-right-radius: 1.2rem;
}

.auth-panel-card .eyebrow,
.auth-panel-card h1,
.auth-panel-card>p {
    text-align: center;
}

.auth-panel-card h1 {
    margin: 0.35rem 0 0.4rem;
    font-size: clamp(2.2rem, 1.6rem + 1vw, 3.1rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.auth-panel-card>p {
    max-width: 25ch;
    margin-inline: auto;
    font-size: 1rem;
    line-height: 1.55;
}

.auth-method-switcher,
.auth-oauth-group,
.auth-panels,
.stack-form,
.stack-actions {
    display: grid;
    gap: 0.9rem;
}

.auth-method-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1.2rem 0 0.9rem;
}

.auth-panel {
    display: none;
}

.auth-panel.is-active {
    display: grid;
    gap: 1rem;
}

.auth-experience--otp-focus .auth-method-switcher,
.auth-experience--otp-focus .auth-divider,
.auth-experience--otp-focus .auth-oauth-group,
.auth-experience--otp-focus .auth-support-copy,
.auth-experience--otp-focus .auth-panel-card>.eyebrow,
.auth-experience--otp-focus .auth-panel-card>h1,
.auth-experience--otp-focus .auth-panel-card>p {
    display: none;
}

.auth-step {
    display: none;
}

.auth-step.is-active {
    display: block;
}

.auth-stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.2rem;
}

.auth-feedback {
    margin-bottom: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(201, 184, 236, 0.4);
    font-size: 0.94rem;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 10px 24px rgba(106, 82, 168, 0.06);
}

.auth-feedback--static {
    margin-top: 1rem;
    margin-bottom: 0;
}

.auth-feedback ul {
    margin: 0;
    padding-inline-start: 1.1rem;
}

.auth-feedback li+li {
    margin-top: 0.3rem;
}

.auth-feedback.is-error {
    border-color: rgba(207, 92, 122, 0.22);
    color: #9a3553;
    background: rgba(255, 240, 244, 0.86);
}

.auth-feedback.is-success {
    border-color: rgba(49, 166, 120, 0.22);
    color: #227354;
    background: rgba(241, 255, 248, 0.86);
}

.auth-step-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(193, 177, 231, 0.32);
    color: rgba(58, 49, 83, 0.66);
    font-size: 0.88rem;
    font-weight: 600;
}

.auth-step-chip.is-active {
    color: var(--fy-primary);
    background: rgba(131, 95, 243, 0.14);
    border-color: rgba(131, 95, 243, 0.24);
}

.auth-form-card {
    padding: 1rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(210, 196, 239, 0.44);
}

.auth-form-card--secondary {
    background: rgba(252, 249, 255, 0.62);
}

.auth-form-card--otp {
    padding: 1.2rem 1rem 1rem;
}

.auth-form-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.auth-verify-shell {
    display: grid;
    gap: 1rem;
}

.auth-verify-copy {
    text-align: center;
}

.auth-verify-copy h3 {
    margin-bottom: 0.3rem;
    font-size: 1.15rem;
}

.auth-verify-copy p {
    color: rgba(58, 49, 83, 0.68);
    font-size: 0.92rem;
    line-height: 1.65;
}

.auth-target-card {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(190, 176, 230, 0.42);
    background: linear-gradient(180deg, rgba(244, 247, 255, 0.96), rgba(238, 242, 252, 0.9));
}

.auth-target-card__label {
    font-size: 0.82rem;
    color: rgba(58, 49, 83, 0.62);
}

.auth-target-card__value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.auth-target-card__value-row strong {
    font-size: 1rem;
    letter-spacing: 0.08em;
    word-break: break-all;
}

.auth-target-card__edit {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    border: 1px solid rgba(132, 101, 236, 0.22);
    background: rgba(255, 255, 255, 0.86);
    color: var(--fy-primary);
    box-shadow: 0 10px 24px rgba(106, 82, 168, 0.08);
}

.auth-target-card__edit svg {
    width: 1rem;
    height: 1rem;
}

.auth-otp-hidden-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.auth-otp-grid {
    display: grid;
    grid-template-columns: repeat(var(--auth-otp-columns, 6), minmax(0, 1fr));
    gap: 0.7rem;
}

.auth-otp-digit {
    width: 100%;
    min-height: 3.9rem;
    border-radius: 1.2rem;
    border: 1.5px solid rgba(132, 101, 236, 0.24);
    background: rgba(255, 255, 255, 0.96);
    text-align: center;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--fy-primary);
    box-shadow: 0 12px 28px rgba(109, 86, 173, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-otp-digit:focus {
    outline: none;
    border-color: rgba(123, 92, 243, 0.8);
    box-shadow: 0 0 0 4px rgba(123, 92, 243, 0.12), 0 14px 34px rgba(109, 86, 173, 0.12);
    transform: translateY(-1px);
}

.auth-otp-meta {
    display: flex;
    justify-content: center;
}

.auth-otp-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.2rem;
    min-height: 2.8rem;
    padding: 0.4rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(132, 101, 236, 0.18);
    background: linear-gradient(180deg, rgba(240, 246, 255, 0.96), rgba(231, 239, 255, 0.92));
    color: #1f62dd;
    font-weight: 700;
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.auth-step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.8rem;
}

.auth-inline-form {
    display: flex;
}

.auth-step-actions--otp,
.auth-inline-form--otp {
    width: 100%;
}

.auth-resend-button {
    width: 100%;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 1rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(244, 247, 255, 0.96), rgba(236, 240, 248, 0.9));
    color: rgba(58, 49, 83, 0.82);
    box-shadow: none;
}

.auth-resend-button.is-disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.auth-resend-button__icon {
    font-size: 1rem;
    line-height: 1;
}

.stack-form label,
.field-card {
    display: grid;
    gap: 0.45rem;
    color: var(--fy-text);
    font-weight: 600;
}

.stack-form--secondary,
.form-grid {
    margin-top: 0.25rem;
}

.support-copy {
    font-size: 0.95rem;
}

.auth-support-copy {
    margin-top: 0.9rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(58, 49, 83, 0.66);
}

.auth-field-summary input[readonly] {
    opacity: 0.78;
    cursor: default;
}

.method-button {
    position: relative;
    overflow: hidden;
}

.method-button--switch {
    justify-content: flex-start;
    gap: 0.7rem;
    padding: 1rem 1.05rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 30px rgba(122, 95, 192, 0.06);
}

.method-button--switch.is-active {
    border-color: rgba(130, 94, 241, 0.38);
    background: linear-gradient(135deg, rgba(137, 103, 249, 0.12), rgba(255, 255, 255, 0.94));
    box-shadow: 0 18px 35px rgba(126, 96, 210, 0.1);
}

.method-button--oauth {
    gap: 0.7rem;
    justify-content: flex-start;
    padding: 1rem 1.05rem;
    background: rgba(255, 255, 255, 0.88);
}

.method-button--soft {
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 14px 30px rgba(122, 95, 192, 0.08);
}

.auth-oauth-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.95rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.95rem;
    color: rgba(58, 49, 83, 0.5);
    font-size: 0.88rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(149, 123, 216, 0.25), transparent);
}

.auth-method__mark {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(130, 94, 241, 0.12);
    color: var(--fy-primary);
    font-size: 0;
    font-weight: 700;
    position: relative;
}

.auth-method__mark::before {
    content: none !important;
}

.method-button--google .auth-method__mark {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 219, 245, 0.9);
}

.method-button--apple .auth-method__mark {
    color: #151515;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 219, 245, 0.9);
}

.method-button--email .auth-method__mark {
    color: #7b5cf3;
}

.method-button--phone .auth-method__mark {
    color: #31a678;
    background: rgba(49, 166, 120, 0.12);
}

.auth-method__svg,
.auth-method__letter {
    width: 1rem;
    height: 1rem;
    display: block;
}

.auth-method__svg {
    overflow: visible;
}

.auth-method__svg--email,
.auth-method__svg--phone {
    color: currentColor;
}

.auth-method__svg--apple {
    color: #131313;
}

.auth-method__letter {
    font-size: 0.95rem;
    line-height: 1rem;
    text-align: center;
}

.auth-security-note__icon {
    display: inline-flex;
    margin-inline-end: 0.35rem;
}

.auth-panel-card .primary-button {
    position: relative;
}

.auth-panel-card .primary-button::after {
    content: '\2197';
    position: absolute;
    inset-inline-end: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    opacity: 0.88;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-grid__actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.field-card {
    padding: 1rem;
    border-radius: 1.4rem;
    border: 1px solid var(--fy-border);
    background: rgba(255, 255, 255, 0.42);
}

/* === css/responsive/auth-profile.css === */
@media (max-width: 920px) {
    .auth-experience {
        grid-template-columns: 1fr;
        grid-template-areas:
            'visual'
            'panel';
        min-height: auto;
        border-radius: 2rem;
    }

    .auth-experience__panel {
        justify-content: center;
        padding: 1.5rem;
    }

    .auth-experience__visual {
        order: -1;
        min-height: 520px;
    }

    .auth-visual-layer {
        min-height: 520px;
    }

    .auth-floating-card--top {
        top: 8rem;
        right: 0;
    }

    .auth-floating-card--middle {
        top: 18rem;
    }

    .auth-floating-card--bottom {
        top: 28rem;
    }
}

@media (max-height: 860px) and (min-width: 921px) {
    .app-shell--auth .topbar {
        padding: 0.72rem 0.95rem;
        margin-bottom: 0.65rem;
    }

    .page-content--auth {
        min-height: calc(100vh - 5.3rem);
    }

    .auth-experience {
        height: calc(100vh - 5.6rem);
    }

    .auth-panel-card {
        width: min(450px, 100%);
        padding: 1.25rem;
    }

    .auth-panel-card__icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 0.65rem;
    }

    .auth-panel-card h1 {
        font-size: clamp(1.65rem, 1rem + 0.9vw, 2.2rem);
    }

    .auth-method-switcher {
        margin: 0.85rem 0 0.7rem;
    }

    .auth-form-card {
        padding: 0.8rem;
    }

    .auth-oauth-group {
        margin-top: 0.7rem;
    }

    .auth-support-copy {
        margin-top: 0.55rem;
        font-size: 0.8rem;
    }

    .auth-visual-layer__badge {
        top: 3.8rem;
    }

    .auth-floating-card {
        width: 156px;
        padding: 0.75rem 0.85rem;
    }

    .auth-floating-card--top {
        top: 9rem;
    }

    .auth-floating-card--middle {
        top: 16.5rem;
    }

    .auth-floating-card--bottom {
        top: 24rem;
    }

    .auth-visual-copy {
        width: min(300px, 72%);
        bottom: 6.8rem;
    }

    .auth-visual-copy h2 {
        font-size: clamp(2.15rem, 1.5rem + 1vw, 3rem);
    }

    .auth-visual-security {
        bottom: 2rem;
    }
}

@media (max-width: 900px) {
    .security-page__grid {
        grid-template-columns: 1fr;
    }

    .profile-complete-shell {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .profile-sidebar__brand,
    .profile-sidebar__nav {
        grid-column: 1 / -1;
    }

    .profile-form-card__hero {
        grid-template-columns: 1fr;
    }

    .profile-hero-visual {
        min-height: 150px;
        order: -1;
    }

    .profile-upload {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .profile-upload__preview {
        width: 92px;
        height: 92px;
    }

    .admin-form-grid,
    .admin-form-grid--triple {
        grid-template-columns: 1fr;
    }

    .admin-links,
    .pill-list {
        grid-auto-flow: row;
    }
}

@media (max-width: 768px) {
    .security-session-card {
        grid-template-columns: 1fr;
    }

    .security-session-card__title-row,
    .security-audit-item__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-sidebar {
        grid-template-columns: 1fr;
        padding: 1rem;
        border-radius: 1.5rem;
    }

    .profile-sidebar__nav {
        grid-auto-flow: column;
        grid-auto-columns: minmax(150px, 1fr);
        overflow-x: auto;
        padding-bottom: 0.15rem;
    }

    .profile-nav-item {
        min-width: 150px;
    }

    .profile-form-card {
        padding: 1rem;
        border-radius: 1.6rem;
        background: rgba(255, 255, 255, 0.95);
    }

    .profile-form-card__hero {
        gap: 0.7rem;
        padding-bottom: 1rem;
    }

    .profile-form-card__copy h1 {
        font-size: 2rem;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-upload {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .profile-date-popover {
        width: 100%;
    }

    .profile-form-actions {
        position: sticky;
        bottom: 0;
        z-index: 4;
        margin: 0 -0.15rem -0.15rem;
        padding: 0.95rem 0.15rem 0.15rem;
        flex-direction: column;
        align-items: stretch;
        background: linear-gradient(180deg, rgba(250, 247, 243, 0), rgba(250, 247, 243, 0.96) 28%);
    }

    .profile-form-actions .primary-button {
        width: 100%;
        min-width: 0;
    }

    .app-shell--auth .app-shell__frame {
        width: 100%;
        min-height: 100svh;
        padding: 0 0 1rem;
    }

    .topbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .topbar__actions {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .app-shell__frame {
        width: min(100vw - 1rem, 1180px);
    }

    .section-heading--row {
        flex-direction: column;
        align-items: stretch;
    }

    .app-shell--auth .app-shell__frame {
        width: 100%;
    }

    .topbar--overlay {
        margin: 0.9rem 0.9rem 0;
        padding: 0.78rem 0.9rem;
        border-radius: 1.35rem;
        background: rgba(255, 255, 255, 0.5);
        box-shadow: 0 10px 34px rgba(108, 85, 171, 0.08);
        backdrop-filter: blur(18px);
    }

    .brand {
        gap: 0.65rem;
    }

    .brand__logo {
        width: 2.4rem;
        height: 2.4rem;
        border-radius: 0.85rem;
    }

    .brand small {
        display: block;
        font-size: 0.73rem;
    }

    .select-pill {
        min-width: 0;
        padding: 0.72rem 0.9rem;
    }

    .auth-experience {
        grid-template-columns: 1fr;
        grid-template-areas:
            'visual'
            'panel';
        gap: 0;
        height: auto;
        min-height: auto;
        border-radius: 0;
        overflow: visible;
    }

    .auth-experience__visual {
        display: block;
        min-height: 22rem;
    }

    .auth-visual-layer {
        min-height: 22rem;
    }

    .auth-visual-layer__badge,
    .auth-floating-card,
    .auth-visual-copy,
    .auth-visual-security {
        display: none;
    }

    .auth-experience__panel {
        padding: 0 1rem 1rem;
        margin-top: -2.8rem;
        position: relative;
        z-index: 3;
    }

    .auth-panel-card {
        width: 100%;
        padding: 3.2rem 1.2rem 1.25rem;
        border-radius: 2rem;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
        border: 1px solid rgba(216, 204, 239, 0.65);
        box-shadow: 0 22px 48px rgba(96, 73, 156, 0.12);
        position: relative;
        overflow: visible;
    }

    .auth-panel-card__icon {
        width: 4.75rem;
        height: 4.75rem;
        position: absolute;
        top: -2.25rem;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        background:
            radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.45) 48%, rgba(255, 255, 255, 0.08) 100%),
            linear-gradient(135deg, rgba(136, 101, 251, 0.12), rgba(193, 169, 255, 0.3));
        box-shadow: 0 10px 22px rgba(135, 105, 214, 0.16);
    }

    .auth-panel-card .eyebrow,
    .auth-panel-card h1,
    .auth-panel-card>p {
        text-align: center;
    }

    .auth-panel-card h1 {
        max-width: none;
        font-size: clamp(2rem, 1.6rem + 1vw, 2.5rem);
    }

    .auth-panel-card>p {
        font-size: 0.96rem;
        line-height: 1.55;
    }

    .page-content--auth {
        gap: 0;
        padding-bottom: 1rem;
    }

    html[dir='rtl'] .topbar,
    html[dir='rtl'] .topbar__actions,
    html[dir='rtl'] .brand {
        flex-direction: row-reverse;
    }
}

@media (max-width: 980px) {
    .dashboard-home__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-hero {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .app-shell--profile-complete .app-shell__frame {
        width: calc(100vw - 0.8rem);
    }

    .profile-complete-shell {
        gap: 0.9rem;
    }

    .profile-sidebar {
        padding: 0.9rem;
        border-radius: 1.35rem;
    }

    .profile-sidebar__brand {
        gap: 0.7rem;
    }

    .profile-sidebar__logo {
        width: 2.6rem;
        height: 2.6rem;
        border-radius: 0.85rem;
    }

    .profile-side-card {
        padding: 1rem;
        border-radius: 1.3rem;
    }

    .profile-progress {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .profile-progress__ring {
        width: 5.1rem;
        height: 5.1rem;
    }

    .profile-form-card {
        padding: 0.9rem;
        border-radius: 1.4rem;
    }

    .profile-hero-visual {
        min-height: 128px;
    }

    .profile-hero-visual__avatar {
        width: 5rem;
        height: 5rem;
    }

    .profile-hero-visual__badge {
        right: 1.2rem;
        bottom: 1.55rem;
    }

    .profile-upload__preview {
        width: 84px;
        height: 84px;
        border-radius: 1.1rem;
    }

    .profile-form-card__copy p,
    .profile-form-actions__hint {
        font-size: 0.9rem;
    }

    .profile-field-card {
        padding: 0.9rem;
        border-radius: 1.15rem;
    }

    .profile-field-card__label {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .profile-date-trigger,
    .profile-search-select__trigger,
    .profile-field-card input,
    .profile-field-card select {
        min-height: 3.2rem;
    }

    .profile-search-select__popover {
        width: 100%;
        padding: 0.8rem;
    }

    .profile-date-popover {
        padding: 0.8rem;
    }

    .page-content--auth {
        min-height: auto;
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1.2rem);
    }

    .auth-method-switcher {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .auth-experience__visual {
        min-height: 20rem;
    }

    .auth-visual-layer {
        min-height: 20rem;
    }

    .auth-experience__panel {
        padding: 0 0.85rem 1rem;
        margin-top: -2.4rem;
    }

    .auth-panel-card {
        padding: 3rem 1rem 1.25rem;
        border-radius: 1.85rem;
    }

    .auth-panel-card__icon {
        width: 4.3rem;
        height: 4.3rem;
        top: -2.05rem;
    }

    .auth-panel-card h1 {
        font-size: 1.92rem;
        line-height: 1.06;
    }

    .auth-form-card,
    .auth-form-card--secondary {
        background: rgba(255, 255, 255, 0.98);
        border-color: rgba(191, 176, 231, 0.42);
        box-shadow: 0 16px 32px rgba(105, 84, 164, 0.08);
    }

    .auth-form-card {
        padding: 0.95rem;
        border-radius: 1.28rem;
    }

    .auth-form-card--otp {
        padding: 1rem 0.9rem 0.95rem;
    }

    .auth-verify-shell {
        gap: 0.85rem;
    }

    .auth-target-card {
        padding: 0.85rem 0.9rem;
    }

    .auth-target-card__value-row strong {
        font-size: 0.95rem;
    }

    .auth-otp-grid {
        gap: 0.5rem;
    }

    .auth-otp-digit {
        min-height: 3.45rem;
        border-radius: 1rem;
        font-size: 1.2rem;
    }

    .auth-otp-timer {
        min-width: 4.8rem;
        min-height: 2.55rem;
        font-size: 1.05rem;
    }

    .auth-stepper {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.2rem;
        margin-bottom: 0.15rem;
    }

    .auth-step-chip {
        white-space: nowrap;
    }

    .method-button,
    .primary-button,
    .ghost-button {
        min-height: 3.2rem;
    }

    .auth-method-switcher {
        margin: 0.95rem 0 0.7rem;
    }

    .auth-oauth-group {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        margin-top: 0.8rem;
    }

    .auth-divider {
        margin-top: 0.85rem;
    }

    .auth-support-copy {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 0.9rem;
        font-size: 0.84rem;
    }

    html[dir='rtl'] .auth-panel-card .eyebrow,
    html[dir='rtl'] .auth-panel-card h1,
    html[dir='rtl'] .auth-panel-card>p {
        text-align: center;
    }
}
