/*
 * Smart Rental login page
 * Dependency-free, responsive and optimized for a fast first paint.
 */

:root {
    --auth-bg: #f5f5fb;
    --auth-surface: #ffffff;
    --auth-text: #17182d;
    --auth-muted: #6b7088;
    --auth-faint: #969aae;
    --auth-line: #e5e6ef;
    --auth-primary: #6d4aff;
    --auth-primary-dark: #5735eb;
    --auth-primary-soft: #eeeaff;
    --auth-success: #13895e;
    --auth-success-soft: #ebfaf4;
    --auth-danger: #d94b68;
    --auth-danger-soft: #fff0f3;
    --auth-navy: #17142f;
    --auth-shadow: 0 28px 90px rgba(27, 23, 65, .16);
    --auth-ease: cubic-bezier(.2, .75, .25, 1);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--auth-bg);
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body.login-page {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 8% 8%, rgba(109, 74, 255, .10), transparent 27rem),
        radial-gradient(circle at 92% 90%, rgba(22, 163, 111, .08), transparent 24rem),
        var(--auth-bg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

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

button {
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.svg-sprite symbol,
svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 10px;
    color: #fff;
    background: var(--auth-navy);
    text-decoration: none;
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.auth-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(18px, 3vw, 42px);
}

.auth-stage {
    width: min(1220px, 100%);
    min-height: min(780px, calc(100svh - 48px));
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 34px;
    background: var(--auth-surface);
    box-shadow: var(--auth-shadow);
}

/* Visual side */
.auth-visual {
    position: relative;
    isolation: isolate;
    min-height: 710px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .04), transparent 45%),
        linear-gradient(145deg, #17142f 0%, #24204a 52%, #4b31bd 100%);
}

.visual-grid {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .2;
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 86%);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

.visual-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
}

.visual-orb-one {
    width: 360px;
    height: 360px;
    inset: -150px -90px auto auto;
    background: radial-gradient(circle at 38% 38%, rgba(167, 139, 250, .8), rgba(109, 74, 255, .08) 66%);
    animation: orbFloat 9s ease-in-out infinite;
}

.visual-orb-two {
    width: 330px;
    height: 330px;
    inset: auto auto -160px -115px;
    background: radial-gradient(circle at 62% 38%, rgba(37, 211, 169, .42), rgba(37, 211, 169, .02) 68%);
    animation: orbFloat 11s ease-in-out infinite reverse;
}

.visual-content {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: clamp(34px, 5vw, 66px);
}

.visual-brand,
.mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    text-decoration: none;
    font-weight: 850;
    letter-spacing: -.03em;
}

.visual-brand {
    color: #fff;
    font-size: 1.12rem;
}

.visual-logo-wrap {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    max-width: 190px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
}

.visual-logo {
    width: auto;
    max-width: 168px;
    max-height: 42px;
    object-fit: contain;
}

.brand-symbol {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #8567ff, #5e39f3);
    box-shadow: 0 8px 22px rgba(109, 74, 255, .28);
}

.brand-symbol svg {
    width: 21px;
    height: 21px;
}

.visual-copy {
    margin-top: clamp(52px, 8vh, 92px);
}

.eyebrow,
.form-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 780;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.eyebrow {
    padding: 8px 12px;
    color: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4de1a7;
    box-shadow: 0 0 0 5px rgba(77, 225, 167, .12);
    animation: statusPulse 2.2s ease-out infinite;
}

.visual-copy h1 {
    max-width: 650px;
    margin: 24px 0 17px;
    font-size: clamp(2.55rem, 4.7vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -.06em;
}

.visual-copy h1 span {
    color: #b9aaff;
}

.visual-copy p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: clamp(.98rem, 1.5vw, 1.12rem);
    line-height: 1.72;
}

.dashboard-art {
    position: relative;
    margin-top: clamp(34px, 6vh, 62px);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 24px;
    background: rgba(255, 255, 255, .075);
    box-shadow: 0 22px 55px rgba(3, 2, 18, .22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: perspective(1200px) rotateX(2deg) rotateY(-2deg);
    transform-origin: center bottom;
}

.dash-topline,
.metric-card,
.trust-row > div,
.panel-footer,
.label-row,
.password-meta {
    display: flex;
    align-items: center;
}

.dash-topline {
    justify-content: space-between;
    gap: 16px;
}

.dash-topline > div {
    display: grid;
    gap: 3px;
}

.dash-kicker,
.metric-card small {
    color: rgba(255, 255, 255, .54);
    font-size: .69rem;
}

.dash-topline strong {
    font-size: .95rem;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #bff7df;
    background: rgba(25, 175, 118, .13);
    font-size: .68rem;
    font-weight: 750;
}

.live-pill span,
.mini-status {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #43d99e;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.metric-card {
    gap: 10px;
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 15px;
    background: rgba(255, 255, 255, .07);
}

.metric-card > div {
    min-width: 0;
    display: grid;
}

.metric-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .86rem;
    white-space: nowrap;
}

.metric-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    color: #dcd4ff;
    background: rgba(137, 104, 255, .18);
}

.metric-icon svg {
    width: 16px;
    height: 16px;
}

.metric-primary {
    background: linear-gradient(135deg, rgba(126, 90, 255, .22), rgba(126, 90, 255, .08));
}

.mini-trend,
.mini-status {
    margin-inline-start: auto;
}

.mini-trend {
    color: #74e0b4;
    font-size: 1rem;
}

.chart-panel {
    margin-top: 12px;
    padding: 14px 14px 10px;
    border-radius: 16px;
    background: rgba(11, 9, 35, .27);
}

.chart-bars {
    height: 74px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    align-items: end;
    gap: 7px;
}

.chart-bars i {
    height: var(--bar);
    min-height: 10px;
    display: block;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(to top, #6d4aff, #a991ff);
    box-shadow: 0 4px 12px rgba(109, 74, 255, .18);
    transform-origin: bottom;
    animation: barsGrow .8s var(--auth-ease) both;
}

.chart-bars i:nth-child(2) { animation-delay: .05s; }
.chart-bars i:nth-child(3) { animation-delay: .10s; }
.chart-bars i:nth-child(4) { animation-delay: .15s; }
.chart-bars i:nth-child(5) { animation-delay: .20s; }
.chart-bars i:nth-child(6) { animation-delay: .25s; }
.chart-bars i:nth-child(7) { animation-delay: .30s; }
.chart-bars i:nth-child(8) { animation-delay: .35s; }

.chart-labels {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 7px;
    margin-top: 8px;
    color: rgba(255, 255, 255, .34);
    font-size: .54rem;
    text-align: center;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: auto;
    padding-top: 34px;
}

.trust-row > div {
    gap: 9px;
    min-width: 0;
}

.trust-row svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: #b9aaff;
}

.trust-row span {
    min-width: 0;
    display: grid;
    color: rgba(255, 255, 255, .47);
    font-size: .64rem;
}

.trust-row strong {
    overflow: hidden;
    color: rgba(255, 255, 255, .9);
    font-size: .7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Form side */
.auth-panel {
    min-width: 0;
    display: grid;
    align-items: center;
    background:
        radial-gradient(circle at 100% 0, rgba(109, 74, 255, .07), transparent 18rem),
        #fff;
}

.panel-inner {
    width: min(430px, calc(100% - 64px));
    margin: auto;
    padding-block: 42px;
}

.mobile-brand-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: clamp(36px, 6vh, 58px);
}

.mobile-brand {
    display: none;
    color: var(--auth-text);
}

.mobile-brand img {
    width: auto;
    max-width: 160px;
    max-height: 44px;
    object-fit: contain;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 10px;
    color: var(--auth-muted);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 700;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.home-link svg {
    width: 17px;
    height: 17px;
}

.home-link:hover {
    color: var(--auth-primary);
    background: var(--auth-primary-soft);
    transform: translateX(-2px);
}

[dir="rtl"] .home-link:hover {
    transform: translateX(2px);
}

.form-heading {
    margin-bottom: 27px;
}

.form-badge {
    padding: 7px 10px;
    color: var(--auth-primary-dark);
    background: var(--auth-primary-soft);
}

.form-badge svg {
    width: 15px;
    height: 15px;
}

.form-heading h2 {
    margin: 17px 0 7px;
    font-size: clamp(2rem, 4vw, 2.65rem);
    line-height: 1.08;
    letter-spacing: -.05em;
}

.form-heading p {
    margin: 0;
    color: var(--auth-muted);
    font-size: .94rem;
    line-height: 1.65;
}

.auth-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
    padding: 12px 12px 12px 13px;
    border: 1px solid;
    border-radius: 14px;
    animation: alertIn .32s var(--auth-ease) both;
    transition: opacity .22s ease, transform .22s ease, margin .22s ease, padding .22s ease;
}

.auth-alert.is-leaving {
    opacity: 0;
    transform: translateY(-8px);
}

.auth-alert-error {
    color: #9f2f49;
    border-color: #ffd0da;
    background: var(--auth-danger-soft);
}

.auth-alert-success {
    color: #0c6e4a;
    border-color: #c8efdf;
    background: var(--auth-success-soft);
}

.alert-symbol {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .72);
}

.alert-symbol svg {
    width: 18px;
    height: 18px;
}

.alert-content {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.alert-content strong {
    font-size: .8rem;
}

.alert-content span {
    overflow-wrap: anywhere;
    font-size: .76rem;
    opacity: .82;
}

.alert-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: currentColor;
    background: transparent;
    cursor: pointer;
    transition: background .2s ease;
}

.alert-close:hover {
    background: rgba(0, 0, 0, .055);
}

.alert-close svg {
    width: 16px;
    height: 16px;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.field-group {
    display: grid;
    gap: 8px;
}

.field-group label,
.label-row label {
    color: #33364a;
    font-size: .81rem;
    font-weight: 760;
}

.label-row {
    justify-content: space-between;
    gap: 16px;
}

.label-row a {
    color: var(--auth-primary);
    text-decoration: none;
    font-size: .77rem;
    font-weight: 740;
}

.label-row a:hover,
.signup-copy a:hover,
.panel-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.field-control {
    position: relative;
}

.field-control input {
    width: 100%;
    height: 54px;
    padding: 0 48px 0 46px;
    border: 1px solid var(--auth-line);
    border-radius: 14px;
    outline: 0;
    color: var(--auth-text);
    background: #fbfbfd;
    font-size: .9rem;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

[dir="rtl"] .field-control input {
    padding: 0 46px 0 48px;
}

.field-control input::placeholder {
    color: #a3a6b7;
}

.field-control input:hover {
    border-color: #d6d3e8;
    background: #fff;
}

.field-control input:focus {
    border-color: rgba(109, 74, 255, .68);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(109, 74, 255, .10);
}

.field-icon,
.password-toggle {
    position: absolute;
    inset-block-start: 50%;
    transform: translateY(-50%);
}

.field-icon {
    inset-inline-start: 16px;
    color: #8d90a4;
    pointer-events: none;
}

.field-icon svg {
    width: 18px;
    height: 18px;
}

.password-toggle {
    inset-inline-end: 8px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #85899e;
    background: transparent;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--auth-primary);
    background: var(--auth-primary-soft);
    outline: 0;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.icon-eye-off,
.password-toggle.is-visible .icon-eye {
    display: none;
}

.password-toggle.is-visible .icon-eye-off {
    display: block;
}

.field-error,
.caps-warning {
    display: none;
    color: var(--auth-danger);
    font-size: .72rem;
    font-weight: 650;
}

.password-meta {
    min-height: 17px;
    justify-content: space-between;
    gap: 12px;
}

.caps-warning {
    margin-inline-start: auto;
    color: #ad6d14;
}

.caps-warning.is-visible,
.field-group.has-error .field-error {
    display: inline;
}

.field-group.has-error .field-control input {
    border-color: rgba(217, 75, 104, .72);
    background: #fffafb;
    box-shadow: 0 0 0 4px rgba(217, 75, 104, .08);
}

.remember-control {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: var(--auth-muted);
    font-size: .78rem;
    cursor: pointer;
    user-select: none;
}

.remember-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-check {
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #d1d3df;
    border-radius: 6px;
    color: #fff;
    background: #fff;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.custom-check svg {
    width: 13px;
    height: 13px;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .18s ease, transform .18s ease;
}

.remember-control input:checked + .custom-check {
    border-color: var(--auth-primary);
    background: var(--auth-primary);
}

.remember-control input:checked + .custom-check svg {
    opacity: 1;
    transform: scale(1);
}

.remember-control input:focus-visible + .custom-check {
    box-shadow: 0 0 0 4px rgba(109, 74, 255, .12);
}

.submit-button {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #7655ff 0%, #5d3bea 100%);
    box-shadow: 0 13px 28px rgba(93, 59, 234, .26);
    cursor: pointer;
    font-size: .88rem;
    font-weight: 790;
    letter-spacing: .01em;
    transition: transform .2s var(--auth-ease), box-shadow .2s ease, filter .2s ease;
}

.submit-button::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, .18) 48%, transparent 68%);
    transform: translateX(-120%);
    transition: transform .65s var(--auth-ease);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 17px 35px rgba(93, 59, 234, .34);
}

.submit-button:hover::before {
    transform: translateX(120%);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(109, 74, 255, .17), 0 13px 28px rgba(93, 59, 234, .26);
}

.submit-button:disabled {
    cursor: wait;
    filter: saturate(.72);
}

.button-arrow {
    width: 18px;
    height: 18px;
    transition: transform .2s ease;
}

.submit-button:hover .button-arrow {
    transform: translateX(3px);
}

[dir="rtl"] .button-arrow {
    transform: scaleX(-1);
}

[dir="rtl"] .submit-button:hover .button-arrow {
    transform: scaleX(-1) translateX(3px);
}

.button-loader {
    width: 20px;
    height: 20px;
    display: none;
    border: 2px solid rgba(255, 255, 255, .34);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.submit-button.is-loading .button-label,
.submit-button.is-loading .button-arrow {
    display: none;
}

.submit-button.is-loading .button-loader {
    display: block;
}

.social-login {
    display: grid;
    gap: 15px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--auth-faint);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--auth-line);
}

.google-login-wrap {
    min-height: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
}

.google-login-wrap > * {
    max-width: 100%;
}

.google-login-wrap iframe {
    max-width: 100% !important;
}

.signup-copy {
    margin: 2px 0 0;
    color: var(--auth-muted);
    font-size: .8rem;
    text-align: center;
}

.signup-copy a {
    color: var(--auth-primary);
    font-weight: 760;
    text-decoration: none;
}

.panel-footer {
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
    color: var(--auth-faint);
    font-size: .67rem;
}

.panel-footer span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.panel-footer svg {
    width: 13px;
    height: 13px;
}

.panel-footer a {
    color: var(--auth-muted);
    text-decoration: none;
    font-weight: 700;
}

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

@keyframes orbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-18px, 18px, 0) scale(1.04); }
}

@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(77, 225, 167, .34); }
    70% { box-shadow: 0 0 0 8px rgba(77, 225, 167, 0); }
    100% { box-shadow: 0 0 0 0 rgba(77, 225, 167, 0); }
}

@keyframes barsGrow {
    from { transform: scaleY(.08); opacity: .35; }
    to { transform: scaleY(1); opacity: 1; }
}

@keyframes alertIn {
    from { opacity: 0; transform: translateY(-7px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 1050px) {
    .auth-stage {
        grid-template-columns: minmax(0, .92fr) minmax(410px, 1.08fr);
    }

    .visual-content {
        padding: 42px;
    }

    .visual-copy h1 {
        font-size: clamp(2.45rem, 5vw, 3.55rem);
    }

    .trust-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .trust-row > div:nth-child(3) {
        display: none;
    }
}

@media (max-width: 820px) {
    .auth-shell {
        place-items: stretch;
        padding: 0;
    }

    .auth-stage {
        min-height: 100vh;
        min-height: 100svh;
        grid-template-columns: 1fr;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-visual {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
        min-height: 100svh;
        align-items: start;
        background:
            radial-gradient(circle at 100% 0, rgba(109, 74, 255, .11), transparent 20rem),
            radial-gradient(circle at 0 100%, rgba(18, 162, 112, .07), transparent 18rem),
            #fff;
    }

    .panel-inner {
        width: min(480px, calc(100% - 44px));
        padding-block: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-bottom));
    }

    .mobile-brand-row {
        justify-content: space-between;
        margin-bottom: clamp(62px, 11vh, 104px);
    }

    .mobile-brand {
        display: inline-flex;
    }

    .form-heading h2 {
        font-size: clamp(2.15rem, 8vw, 3rem);
    }
}

@media (max-width: 480px) {
    .panel-inner {
        width: min(100% - 32px, 430px);
    }

    .mobile-brand-row {
        margin-bottom: clamp(44px, 8vh, 70px);
    }

    .mobile-brand img {
        max-width: 132px;
        max-height: 38px;
    }

    .mobile-brand {
        font-size: .9rem;
    }

    .brand-symbol {
        width: 37px;
        height: 37px;
        border-radius: 11px;
    }

    .home-link {
        padding: 8px;
    }

    .home-link span {
        display: none;
    }

    .form-heading {
        margin-bottom: 24px;
    }

    .form-heading p {
        font-size: .88rem;
    }

    .field-control input {
        height: 52px;
        font-size: 16px; /* Prevents iOS zoom */
    }

    .auth-alert {
        align-items: start;
    }

    .panel-footer {
        flex-wrap: wrap;
        margin-top: 27px;
    }
}

@media (max-height: 760px) and (min-width: 821px) {
    .auth-shell {
        padding-block: 18px;
    }

    .auth-stage {
        min-height: 680px;
    }

    .auth-visual {
        min-height: 680px;
    }

    .visual-content {
        padding-block: 34px;
    }

    .visual-copy {
        margin-top: 38px;
    }

    .visual-copy h1 {
        font-size: clamp(2.4rem, 4.3vw, 3.8rem);
    }

    .dashboard-art {
        margin-top: 30px;
    }

    .mobile-brand-row {
        margin-bottom: 28px;
    }

    .form-heading {
        margin-bottom: 22px;
    }

    .auth-form {
        gap: 14px;
    }

    .panel-footer {
        margin-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (forced-colors: active) {
    .submit-button,
    .brand-symbol,
    .custom-check {
        border: 1px solid ButtonText;
    }
}
