@font-face {
    font-family: Inter;
    src: url("../fonts/inter/inter-latin-400-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Inter;
    src: url("../fonts/inter/inter-latin-600-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: Manrope;
    src: url("../../fonts/Manrope/Manrope-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

.customer-auth {
    --ink: #12355e;
    --muted: #526c8e;
    --blue: #1c5da5;
    --display-font: Manrope, Inter, system-ui, sans-serif;
    margin: 0;
    background: #e5f1fc;
    color: var(--ink);
    font: 400 1rem/1.5 Inter, system-ui, sans-serif;
}

.customer-auth *,
.customer-auth *::before,
.customer-auth *::after {
    box-sizing: border-box;
}

.customer-auth :is(h1, p) {
    margin: 0;
}

.customer-auth :is(button, input, select) {
    font: inherit;
}

.customer-auth :focus-visible {
    outline: 2px solid #236ebd;
    outline-offset: 3px;
}

.customer-auth__page {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-block-size: 100vh;
    min-block-size: 100svh;
    padding: clamp(0.625rem, 2.4vh, 1.5rem) clamp(0.75rem, 2.8vw, 2.25rem);
}

.customer-auth__scene {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(170deg, #e2effb 3%, #e7f2fc 53%, #f4f9fd 83%, #e5f2fd 100%);
}

.customer-auth__sky {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse at 24% 24%, #fbfdff 0%, transparent 32%),
        radial-gradient(ellipse at 58% 21%, #bedcfa 0%, transparent 33%),
        radial-gradient(ellipse at 82% 15%, #fcfdff 0%, transparent 29%),
        radial-gradient(ellipse at 93% 39%, #cfe6fc 0%, transparent 45%);
    animation: customer-auth-sky-drift 24s ease-in-out infinite alternate;
}

@keyframes customer-auth-sky-drift {
    from { transform: translate3d(-3%, 0, 0); }
    to { transform: translate3d(5%, 7%, 0) scale(1.06); }
}

.customer-auth__cloud {
    /* A single opacity keeps the overlapping pieces of each cloud seamless. */
    opacity: 0.85;
    position: absolute;
    inline-size: var(--cloud-size);
    block-size: calc(var(--cloud-size) * 0.28);
    border-radius: 100vmax;
    background: #fff;
    box-shadow: 0 12px 32px rgb(120 173 222 / 9%);
    animation: customer-auth-cloud-drift var(--cloud-duration) ease-in-out infinite alternate;
}

.customer-auth__cloud::before,
.customer-auth__cloud::after {
    position: absolute;
    bottom: 22%;
    border-radius: 50%;
    background: #fff;
    content: "";
}

.customer-auth__cloud::before {
    left: 13%;
    inline-size: 48%;
    block-size: 140%;
}

.customer-auth__cloud::after {
    right: 14%;
    inline-size: 44%;
    block-size: 117%;
}

.customer-auth__cloud--left {
    --cloud-size: clamp(7rem, 9vw, 11rem);
    --cloud-duration: 21s;
    --cloud-travel: 80px;
    inset: 36% auto auto 5%;
}

.customer-auth__cloud--distant {
    --cloud-size: clamp(4.75rem, 6.5vw, 8rem);
    --cloud-duration: 27s;
    --cloud-travel: -64px;
    inset: 26% auto auto 17%;
    opacity: 0.57;
}

.customer-auth__cloud--right {
    --cloud-size: clamp(8rem, 13vw, 15rem);
    --cloud-duration: 25s;
    --cloud-travel: -116px;
    inset: 10% -2% auto auto;
}

@keyframes customer-auth-cloud-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(var(--cloud-travel), 16px, 0); }
}

.customer-auth__skyline {
    position: absolute;
    inset: auto 0 0;
    block-size: clamp(8rem, 24vh, 14rem);
    background: url("../images/customer-login-skyline.svg") repeat-x center bottom / auto 100%;
}

.customer-auth__card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    inline-size: min(100%, 62rem);
    min-block-size: 28.5rem;
    overflow: hidden;
    border: 1px solid #d4e3f3;
    border-radius: clamp(1.375rem, 1.6vw, 1.75rem);
    background: #fff;
    box-shadow: 0 22px 72px rgb(26 71 119 / 22%);
}

.customer-auth__hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.75rem, 3.4vw, 2.875rem);
    overflow: hidden;
    background: linear-gradient(155deg, #102e54 1%, #1d4b82 56%, #1a4f88 100%);
    color: #fff;
}

.customer-auth__hero::before {
    position: absolute;
    z-index: -1;
    inset: 33% 0 0;
    background:
        linear-gradient(180deg, rgb(24 77 136 / 51%), rgb(21 73 128 / 20%) 45%, rgb(13 44 81 / 58%)),
        url("../images/customer-login-room.webp") center center / cover no-repeat;
    content: "";
}

.customer-auth__eyebrow,
.customer-auth__market {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #e8f1fc;
    font: 600 0.6875rem/1.4 Inter, system-ui, sans-serif;
    text-transform: uppercase;
}

.customer-auth__eyebrow {
    letter-spacing: 0.09em;
}

.customer-auth__eyebrow::before {
    flex: 0 0 0.5rem;
    block-size: 0.5rem;
    border-radius: 50%;
    background: #c7e4ff;
    box-shadow: 0 0 0 4px rgb(185 221 255 / 20%);
    content: "";
}

.customer-auth .customer-auth__tagline {
    max-inline-size: 12ch;
    margin-block: 0.8rem 0.85rem;
    font: 700 clamp(1.85rem, 2.65vw, 2.375rem)/1.12 var(--display-font);
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.customer-auth__hero-description {
    max-inline-size: 25rem;
    color: #f0f6fd;
    font-size: 0.875rem;
    line-height: 1.55;
    text-wrap: balance;
}

.customer-auth__market::before {
    flex: 0 0 1.6rem;
    block-size: 1px;
    background: rgb(231 242 255 / 72%);
    content: "";
}

.customer-auth__panel {
    display: grid;
    place-items: center;
    padding: clamp(1.25rem, 3vh, 2rem) clamp(1.625rem, 4.1vw, 3.5rem);
}

.customer-auth__content {
    inline-size: 100%;
    max-inline-size: 27.25rem;
}

.customer-auth__logo {
    display: block;
    inline-size: clamp(9.75rem, 13vw, 11.75rem);
    block-size: auto;
    margin: 0 auto 0.95rem;
}

.customer-auth__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid #c4d9f3;
    border-radius: 0.45rem;
    background: #edf5ff;
    color: var(--blue);
    font: 600 0.6875rem/1.35 Inter, system-ui, sans-serif;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.customer-auth__badge svg,
.customer-auth__submit svg {
    flex: none;
}

.customer-auth .customer-auth__content h1 {
    margin-block: 0.65rem 0.25rem;
    font: 700 clamp(1.5rem, 2vw, 1.7rem)/1.2 var(--display-font);
    letter-spacing: -0.03em;
}

.customer-auth__intro {
    color: var(--muted);
    font-size: 0.875rem;
}

.customer-auth .customer-auth__status,
.customer-auth .otp-status {
    margin-block: 1rem 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid #c4d9f3;
    border-radius: 0.5rem;
    background: #edf5ff;
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.customer-auth .customer-auth__status--error {
    border-color: #edc5c7;
    background: #fff3f3;
    color: #9e2635;
}

.customer-auth .customer-auth__error-list {
    padding-inline-start: 1.75rem;
}

.customer-auth__form {
    margin-block-start: 1.1rem;
}

.customer-auth__form--registration {
    display: grid;
    gap: 0.65rem;
}

.customer-auth__field-pair,
.customer-auth__phone-row {
    display: grid;
    gap: 0.65rem;
}

.customer-auth__field-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-auth__phone-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.customer-auth .customer-auth__send-otp {
    grid-area: 1 / 2;
    min-block-size: 2.75rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid #c4d9f3;
    border-radius: 0.65rem;
    background: #edf5ff;
    color: var(--blue);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.customer-auth__send-otp:enabled:hover {
    background: #e0edfc;
}

.customer-auth__send-otp:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.customer-auth__phone-row .text-danger {
    grid-area: 2 / 1 / auto / -1;
    margin: 0;
}

.customer-auth__field label {
    display: block;
    margin-block-end: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.customer-auth__field :is(input, select) {
    inline-size: 100%;
    min-inline-size: 0;
    min-block-size: 2.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccdaec;
    border-radius: 0.65rem;
    background: #f6f8fb;
    color: var(--ink);
}

.customer-auth__field input::placeholder {
    color: #586f92;
    opacity: 1;
}

.customer-auth__field select {
    padding-inline: 0.55rem;
    text-overflow: ellipsis;
}

.customer-auth__field :is(input, select):focus {
    border-color: #4280c3;
    background: #fff;
}

.customer-auth__error,
.customer-auth__form--registration .text-danger {
    margin-block-start: 0.4rem;
    color: #9e2635;
    font-size: 0.8125rem;
    overflow-wrap: anywhere;
}

.customer-auth__otp {
    margin-block-start: 0.9rem;
}

.customer-auth__otp-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.65rem;
}

.customer-auth__otp-caption label {
    margin-block-end: 0;
}

.customer-auth__otp-hint {
    color: var(--muted);
    font-size: 0.8125rem;
}

.customer-auth__digits {
    display: flex;
    gap: clamp(0.2rem, 1vw, 0.55rem);
    margin-block-start: 0.65rem;
}

.customer-auth__digits .otp-input {
    flex: 0 1 2.875rem;
    min-inline-size: 0;
    padding-inline: 0;
    font-weight: 600;
    text-align: center;
}

.customer-auth__digits .otp-input.filled {
    border-color: #8ab3de;
    background: #edf5ff;
}

.customer-auth__resend {
    margin-block-start: 0.55rem;
    color: var(--muted);
    font-size: 0.8125rem;
}

.customer-auth__resend a,
.customer-auth__signup a {
    color: var(--blue);
    font-weight: 600;
    text-underline-offset: 0.18em;
}

.customer-auth .customer-auth__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    inline-size: 100%;
    min-block-size: 2.75rem;
    margin-block-start: 0.7rem;
    padding: 0.65rem 1rem;
    border: 0;
    border-radius: 0.65rem;
    background: linear-gradient(105deg, #1d5595, #286bb8);
    box-shadow: 0 9px 22px rgb(27 79 139 / 25%);
    color: #fff;
    font: 600 0.9375rem/1.35 Inter, system-ui, sans-serif;
    cursor: pointer;
    transition: box-shadow 180ms ease, filter 180ms ease;
}

.customer-auth__submit:enabled:hover {
    box-shadow: 0 10px 24px rgb(27 79 139 / 35%);
    filter: brightness(1.08);
}

.customer-auth__submit:enabled:active {
    filter: brightness(0.93);
}

.customer-auth .customer-auth__submit:disabled {
    background: #e8f0fa;
    box-shadow: none;
    color: var(--muted);
    cursor: not-allowed;
}

.customer-auth__form--registration .customer-auth__otp,
.customer-auth__form--registration .customer-auth__submit {
    margin-block-start: 0;
}

.customer-auth .customer-auth__signup {
    margin-block-start: 0.95rem;
    color: var(--muted);
    font-size: 0.875rem;
    text-align: center;
}

@media (max-width: 46rem) {
    .customer-auth__page {
        padding-block: 0.75rem;
    }

    .customer-auth__card {
        grid-template-columns: minmax(0, 1fr);
        inline-size: min(100%, 30rem);
        min-block-size: auto;
    }

    .customer-auth__hero {
        padding: 0.95rem clamp(1rem, 5vw, 1.75rem);
    }

    .customer-auth__hero::before {
        inset: 0;
        background:
            linear-gradient(90deg, rgb(16 46 84 / 99%), rgb(17 53 94 / 88%) 57%, rgb(19 61 106 / 49%)),
            url("../images/customer-login-room.webp") right 48% / cover no-repeat;
    }

    .customer-auth .customer-auth__tagline {
        max-inline-size: none;
        margin-block: 0.45rem 0.35rem;
        font-size: clamp(1.3rem, 4.8vw, 1.55rem);
        text-wrap: initial;
    }

    .customer-auth__market {
        display: none;
    }

    .customer-auth__hero-description {
        max-inline-size: 21rem;
        font-size: 0.8125rem;
    }

    .customer-auth__panel {
        padding: 1.15rem clamp(1rem, 5vw, 1.75rem);
    }

    .customer-auth__logo {
        margin-block-end: 0.75rem;
    }
}

@media (width > 46rem) and (max-height: 42rem) {
    .customer-auth__identity {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .customer-auth__logo {
        inline-size: min(43%, 10.5rem);
        margin: 0;
    }

    .customer-auth__panel {
        padding-block: 1rem;
    }
}

@media (max-width: 46rem) and (max-height: 40rem) {
    .customer-auth__hero {
        padding-block: 0.75rem;
    }

    .customer-auth .customer-auth__tagline {
        margin-block: 0;
    }

    .customer-auth__eyebrow,
    .customer-auth__hero-description {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .customer-auth__sky,
    .customer-auth__cloud {
        animation: none;
    }

    .customer-auth .customer-auth__submit {
        transition: none;
    }
}
