@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
    --white: #ffffff;
    --black: #111111;
    --text: #1f1f1f;
    --muted: #8a8a8a;
    --border: #ececec;
    --page-bg: #eeeeee;
    --gold: #ffd963;
    --gold-dark: #b08301;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--page-bg);
    color: var(--text);
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.auth-container {
    width: min(100% - 48px, 1280px);
    margin: 0 auto;
}

.site-header {
    padding: 24px 0 18px;
}

.site-header__brand {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.site-header__brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.auth-page {
    padding-bottom: 52px;
}

.auth-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 20px;
    align-items: stretch;
    min-height: 550px;
}

.auth-image-card {
    overflow: hidden;
    border-radius: 32px;
    min-height: 520px;
    background: #ddd;
}

.auth-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auth-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 40px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-back-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    color: #1d1d1d;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
}

.auth-back-icon {
    width: 32px;
    height: 32px;
    border: 1px solid #e8e8e8;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-back-icon img {
    width: 6px;
    height: 10px;
    display: block;
    object-fit: contain;
}

.auth-card h1 {
    margin: 0 0 32px;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #242424;
}

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

.fz-input-wrapper {
    position: relative;
    height: 56px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fz-input-wrapper:focus-within,
.fz-input-wrapper.is-filled {
    border-color: #d5d5d5;
}

.fz-input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0 16px;
    color: #1f1f1f;
    font-size: 16px;
    font-weight: 400;
}

.fz-input::placeholder {
    color: #a7a7a7;
}

.date-wrapper {
    cursor: pointer;
}

.date-input {
    cursor: pointer;
    padding-right: 46px;
}

.input-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    pointer-events: none;
}

.phone-wrapper {
    display: flex;
    align-items: center;
}

.phone-country-select {
    position: relative;
    flex: 0 0 auto;
    height: 100%;
}

.phone-country-btn {
    height: 100%;
    border: 0;
    background: transparent;
    padding: 0 6px 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #1f1f1f;
}

.country-flag {
    font-size: 13px;
    line-height: 1;
}

.country-name,
.country-code-text {
    font-size: 14px;
    color: #8B8B8B;
}

.phone-divider {
    width: 1px;
    height: 18px;
    background: #e1e1e1;
    margin: 0 4px;
}

.phone-input {
    flex: 1;
    padding-left: 8px;
}

.country-dropdown {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    width: 220px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: 0.2s ease;
}

.phone-country-select.is-open .country-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.country-option {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 9px;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 8px;
    text-align: left;
    font-size: 12px;
    color: #1f1f1f;
}

.country-option:hover {
    background: #f6f6f6;
}

.country-option strong {
    font-size: 12px;
    font-weight: 600;
}

.password-wrapper {
    display: flex;
    align-items: center;
}

.password-input {
    padding-right: 46px;
}

.eye-btn {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eye-btn svg {
    position: absolute;
}

.eye-closed {
    display: none;
}

.password-wrapper.is-visible .eye-open {
    display: none;
}

.password-wrapper.is-visible .eye-closed {
    display: block;
}

.password-helper {
    font-size: 9px;
    line-height: 1.5;
    color: #8c8c8c;
}

.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 2px;
    cursor: pointer;
}

.terms-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-checkbox {
    width: 20px;
    height: 15px;
    flex: 0 0 13px;
    margin-top: 1px;
    border: 1px solid #bfbfbf;
    border-radius: 2px;
    background: #ffffff;
    position: relative;
    transition: 0.2s ease;
}

.terms-checkbox:checked+.custom-checkbox {
    background: linear-gradient(180deg, #FFD963 0%, #B08301 100%);
    border-color: transparent;
}

.terms-checkbox:checked+.custom-checkbox::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 0px;
    width: 4px;
    height: 7px;
    border: solid #ffffff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.terms-head {
    font-size: 12px;
    line-height: 1.45;
    color: #8a8a8a;
}

.terms-head a {
    color: #1f1f1f;
    font-weight: 600;
    text-decoration: underline;
}

.submit-btn {
    height: 56px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #2b2b2b 0%, #050505 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
}

.submit-btn:hover {
    filter: brightness(1.08);
}

.auth-signin-btn {
    height: 56px;
    border: 1px solid #111111;
    border-radius: 16px;
    background: #ffffff;
    color: #1f1f1f;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
}

.mobile-label {
    display: none;
}

/* Date Modal */

.date-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
}

.date-modal.is-open {
    display: block;
}

.date-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
}

.date-modal__card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(420px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.date-modal__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.date-modal__top h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.date-modal__close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f3f3f3;
    font-size: 24px;
    line-height: 1;
    color: #333333;
}

.date-modal__view.is-hidden {
    display: none;
}

.date-modal__month-row,
.date-modal__year-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.date-nav-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f4f4f4;
    font-size: 22px;
    color: #1f1f1f;
}

.date-modal__month-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-title-btn {
    border: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    color: #1f1f1f;
}

.date-modal__divider {
    width: 1px;
    height: 16px;
    background: #e4e4e4;
}

.date-modal__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.date-modal__weekdays span {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #898989;
}

.date-modal__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.date-day {
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: #f6f6f6;
    color: #1f1f1f;
    font-size: 13px;
    font-weight: 500;
}

.date-day:hover {
    background: #ededed;
}

.date-day.is-selected {
    background: #111111;
    color: #ffffff;
}

.date-day.is-empty {
    background: transparent;
    pointer-events: none;
}

.date-confirm-btn,
.date-back-btn {
    width: 100%;
    height: 44px;
    margin-top: 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.date-confirm-btn {
    border: 0;
    background: #111111;
    color: #ffffff;
}

.date-back-btn {
    border: 1px solid #111111;
    background: #ffffff;
    color: #111111;
}

.date-modal__selector-grid {
    display: grid;
    gap: 10px;
}

.date-modal__selector-grid--months {
    grid-template-columns: repeat(3, 1fr);
}

.date-modal__selector-grid--years {
    grid-template-columns: repeat(4, 1fr);
}

.date-selector-btn {
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: #f6f6f6;
    font-size: 13px;
    font-weight: 600;
    color: #1f1f1f;
}

.date-selector-btn:hover {
    background: #ededed;
}

.date-selector-btn.is-selected {
    background: #111111;
    color: #ffffff;
}

#yearRangeTitle {
    font-size: 15px;
    font-weight: 700;
}

/* Responsive */

@media (max-width: 992px) {
    .auth-layout {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
        background: transparent;
        border: 0;
    }

    .auth-image-card {
        min-height: 300px;
        border-radius: 0;
    }

    .auth-card {
        max-width: 520px;
        width: 100%;
        margin: -34px auto 0;
        position: relative;
        z-index: 2;
        border-radius: 28px 28px 0 0;
    }
}

@media (max-width: 640px) {
    body {
        background: #ffffff;
    }

    .auth-container {
        width: 100%;
    }

    .site-header {
        display: none;
    }

    .auth-page {
        padding: 0;
    }

    .auth-layout {
        min-height: 100vh;
    }

    .auth-image-card {
        height: 245px;
        min-height: 245px;
    }

    .auth-card {
        min-height: auto;
        padding: 30px 24px 24px;
        margin-top: -24px;
        border-radius: 28px 28px 0 0;
    }

    .login-margin {
        margin-top: -175px !important;
    }

    .auth-back-link {
        display: none;
    }

    .auth-card h1 {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .auth-form {
        gap: 14px;
    }

    .fz-input-wrapper {
        height: 48px;
    }

    .fz-input {
        font-size: 14px;
        padding: 0 11px;
    }

    .input-icon {
        width: 13px;
        height: 13px;
        right: 12px;
    }

    .phone-country-btn {
        padding-left: 10px;
    }

    .country-name,
    .country-code-text,
    .phone-country-btn {
        font-size: 13px;
    }

    .country-flag {
        font-size: 10px;
    }

    .phone-input {
        padding-left: 5px;
    }

    .country-dropdown {
        width: 190px;
    }

    .eye-btn {
        right: 10px;
    }

    .eye-btn svg {
        width: 13px;
        height: 13px;
    }

    .terms-row {
        gap: 6px;
    }

    .custom-checkbox {
        width: 10px;
        height: 10px;
        flex-basis: 10px;
    }

    .terms-head {
        font-size: 10px;
    }

    .submit-btn {
        height: 48px;
        font-size: 14px;
    }

    .auth-signin-btn {
        height: 48px;
        font-size: 14px;
    }


    .mobile-label {
        display: inline;
    }

    .date-modal__card {
        width: calc(100% - 28px);
        padding: 18px;
        border-radius: 18px;
    }

    .date-day {
        height: 34px;
    }
}

/* =========================
   Date Input
========================= */

.fz-date-input-wrapper {
    position: relative;
    width: 100%;
    height: 56px;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fz-date-input-wrapper:hover,
.fz-date-input-wrapper:focus-within {
    border-color: #d4d4d4;
}

.fz-date-input-wrapper.is-filled {
    border-color: #b08301;
}

.fz-date-input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0 42px 0 16px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1f1f1f;
    cursor: pointer;
}

.fz-date-input::placeholder {
    color: #9a9a9a;
}

.fz-date-input-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #8f8f8f;
    pointer-events: none;
}

/* =========================
   Modal Base
========================= */

.fz-date-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    font-family: "Montserrat", sans-serif;
}

.fz-date-modal.is-open {
    display: block;
}

.fz-date-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.fz-date-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 318px;
    transform: translate(-50%, -50%);
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

.fz-date-view.is-hidden {
    display: none;
}

.fz-date-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.fz-date-card-head h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1;
    font-weight: 500;
    color: #1f1f1f;
}

.fz-date-close {
    width: 25px;
    height: 25px;
    border: 1px solid #e4e4e4;
    border-radius: 50%;
    background: #ffffff;
    color: #7a7a7a;
    font-size: 18px;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   Year View
========================= */

.fz-year-nav {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    margin-bottom: 18px;
}

.fz-year-nav span {
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    color: #1f1f1f;
    letter-spacing: 0.02em;
}

.fz-nav-btn {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #6b6b6b;
    font-size: 24px;
    line-height: 1;
}

.fz-year-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
    margin-bottom: 22px;
}

.fz-year-btn,
.fz-month-btn {
    height: 31px;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    background: #ffffff;
    color: #6f6f6f;
    font-size: 11px;
    font-weight: 400;
    transition: 0.2s ease;
}

.fz-year-btn:hover,
.fz-month-btn:hover {
    border-color: #d1d1d1;
    color: #1f1f1f;
}

.fz-year-btn.is-selected,
.fz-month-btn.is-selected {
    border-color: #b08301;
    background: #fff8df;
    color: #1f1f1f;
}

/* =========================
   Month View
========================= */

.fz-month-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
    margin-bottom: 22px;
}

/* =========================
   Day View
========================= */

.fz-date-month-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
}

.fz-date-month-title button {
    border: 0;
    background: transparent;
    color: #1f1f1f;
    font-size: 18px;
    font-weight: 400;
}

.fz-date-month-title span {
    width: 1px;
    height: 19px;
    background: #e4e4e4;
}

.fz-week-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 14px;
}

.fz-week-row span {
    text-align: center;
    font-size: 8px;
    font-weight: 500;
    color: #8a8a8a;
}

.fz-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 14px;
    margin-bottom: 22px;
}

.fz-day-btn {
    width: 26px;
    height: 26px;
    margin: 0 auto;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #5f5f5f;
    font-size: 11px;
    font-weight: 400;
    transition: 0.2s ease;
}

.fz-day-btn:hover {
    background: #f3f3f3;
    color: #1f1f1f;
}

.fz-day-btn.is-muted {
    color: #c7c7c7;
}

.fz-day-btn.is-selected {
    background: linear-gradient(180deg, #ffd963 0%, #b08301 100%);
    color: #ffffff;
}

.fz-date-primary-btn,
.fz-date-secondary-btn {
    width: 100%;
    height: 34px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.fz-date-primary-btn {
    border: 0;
    background: #ffd963;
    color: #111111;
    margin-bottom: 11px;
}

.fz-date-secondary-btn {
    border: 1px solid #e4e4e4;
    background: #ffffff;
    color: #1f1f1f;
}

.fz-date-secondary-btn:hover {
    border-color: #cfcfcf;
}

@media (max-width: 640px) {
    .fz-date-input-wrapper {
        height: 48px;
    }

    .fz-date-input {
        font-size: 14px;
        padding-left: 11px;
        padding-right: 34px;
    }

    .fz-date-input-icon {
        width: 13px;
        height: 13px;
        right: 11px;
    }

    .fz-date-card {
        width: calc(100% - 36px);
        max-width: 318px;
        padding: 16px;
        border-radius: 18px;
    }
}

.fz-input-wrapper,
.fz-date-input-wrapper {
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: none !important;
    outline: none !important;
}

.fz-input-wrapper:hover,
.fz-date-input-wrapper:hover {
    border-color: #d4d4d4;
}

.fz-input-wrapper:focus-within,
.fz-input-wrapper.is-filled,
.fz-date-input-wrapper:focus-within,
.fz-date-input-wrapper.is-filled {
    border: 1px solid transparent !important;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(180deg, #FFD963 0%, #B08301 100%) border-box !important;
    box-shadow: none !important;
}

.fz-input,
.fz-date-input,
.fz-input-wrapper input,
.fz-date-input-wrapper input {
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

.fz-input:-webkit-autofill,
.fz-input:-webkit-autofill:hover,
.fz-input:-webkit-autofill:focus,
.fz-input:-webkit-autofill:active,
.fz-date-input:-webkit-autofill,
.fz-date-input:-webkit-autofill:hover,
.fz-date-input:-webkit-autofill:focus,
.fz-date-input:-webkit-autofill:active,
.fz-input-wrapper input:-webkit-autofill,
.fz-input-wrapper input:-webkit-autofill:hover,
.fz-input-wrapper input:-webkit-autofill:focus,
.fz-input-wrapper input:-webkit-autofill:active,
.fz-date-input-wrapper input:-webkit-autofill,
.fz-date-input-wrapper input:-webkit-autofill:hover,
.fz-date-input-wrapper input:-webkit-autofill:focus,
.fz-date-input-wrapper input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #1f1f1f !important;
    caret-color: #1f1f1f !important;
    background-color: transparent !important;
    transition: background-color 999999s ease-in-out 0s !important;
    border-radius: 16px;
}

.fz-input::selection,
.fz-date-input::selection,
.fz-input-wrapper input::selection,
.fz-date-input-wrapper input::selection {
    background: rgba(255, 217, 99, 0.45);
    color: #111111;
}

.fz-input::placeholder,
.fz-date-input::placeholder {
    color: #9a9a9a;
}

.auth-card--login {
    justify-content: flex-start;
}

.auth-form--login {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.login-tab {
    height: 56px;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    background: #ffffff;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #9a9a9a;
    font-size: 14px;
    font-weight: 400;
    transition: 0.2s ease;
}

.login-tab.is-active {
    border: 1px solid transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(180deg, #ffd963 0%, #b08301 100%) border-box;
    color: #9a9a9a;
}

.login-tab__radio {
    width: 16px;
    height: 16px;
    border: 1px solid #9a9a9a;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 16px;
}

.login-tab__radio::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: transparent;
}

.login-tab.is-active .login-tab__radio {
    border-color: #b08301;
}

.login-tab.is-active .login-tab__radio::after {
    background: #b08301;
}

.login-mode {
    display: none;
}

.login-mode.is-active {
    display: grid;
    gap: 16px;
}

.password-block .password-helper {
    margin: 6px 0 0;
}

.login-spacer {
    flex: 1;
    min-height: 70px;
}

.login-actions {
    display: grid;
    gap: 16px;
    margin-top: auto;
}

.auth-form--login .submit-btn {
    margin-top: 0;
}

@media (max-width: 640px) {
    .login-tabs {
        gap: 12px;
    }

    .login-tab {
        height: 48px;
        border-radius: 14px;
        padding: 0 12px;
        font-size: 13px;
    }

    .login-tab__radio {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
    }

    .login-tab__radio::after {
        width: 6px;
        height: 6px;
    }

    .login-spacer {
        min-height: 40px;
    }
}

/* =========================
   OTP Page
========================= */

.otp-page .auth-layout {
    align-items: stretch;
}

.otp-page .auth-card {
    align-items: center;
}

.otp-card__content {
    width: min(100%, 426px);
    margin: 0 auto;
    text-align: center;
}

.otp-card h1 {
    margin: 0 0 16px;
    color: #242424;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.otp-subtitle {
    max-width: 395px;
    margin: 0 auto 24px;
    color: #8B8B8B;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 400;
}

.otp-form {
    width: 100%;
}

.otp-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 18px;
}

.otp-input {
    width: 86px;
    height: 86px;

    border: 1px solid transparent;
    border-radius: 9px;

    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(180deg, #FFD963 0%, #B08301 100%) border-box;

    outline: 0;
    color: #1f1f1f;
    text-align: center;
    font-size: 26px;
    line-height: 1;
    font-weight: 500;

    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.otp-input::placeholder {
    color: #8a8a8a;
    opacity: 1;
}

.otp-input.is-error {
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(180deg, #ef4444 0%, #991b1b 100%) border-box;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.otp-error {
    display: none;
    color: #dc2626;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
}

.otp-error.is-visible {
    display: block;
}

.otp-resend {
    margin: 0 0 32px;
    color: #8a8a8a;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
}

.otp-resend button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #B08301;
    font: inherit;
    font-weight: 500;
    text-decoration: underline;
}

.otp-submit-btn {
    width: 100%;
    height: 56px;
    margin-top: 0;

    border: 0;
    border-radius: 16px;

    background: linear-gradient(180deg, #2b2b2b 0%, #050505 100%);
    color: #ffffff;

    font-size: 16px;
    font-weight: 500;
}


.go-back-btn {
    width: 100%;
    height: 56px;
    margin-top: 12px;

    border: 1px solid #111111;
    border-radius: 16px;

    background: #ffffff;
    color: #1f1f1f;

    font-size: 16px;
    font-weight: 500;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.go-back-btn:hover {
    background: #f7f7f7;
}

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

@media (max-width: 992px) {
    .otp-card__content {
        width: min(100%, 430px);
    }
}

@media (max-width: 640px) {
    .otp-page .auth-image-card {
        height: 352px;
        min-height: 550px;
    }

    .otp-page .auth-card {
        max-width: 100%;
        margin-top: -194px;
        padding: 22px 18px 30px;
        border-radius: 28px 28px 0 0;
    }

    .otp-card__content {
        width: 100%;
        text-align: left;
    }

    .otp-card h1 {
        margin-bottom: 8px;
        font-size: 20px;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

    .otp-subtitle {
        max-width: 100%;
        margin: 0 0 20px;
        font-size: 11.5px;
        line-height: 1.45;
    }

    .otp-inputs {
        justify-content: flex-start;
        gap: 13px;
        margin-bottom: 13px;
    }

    .otp-input {
        width: 64px;
        height: 64px;
        border-radius: 8px;
        font-size: 20px;
    }

    .otp-resend {
        margin-bottom: 92px;
        font-size: 11.5px;
    }

    .otp-submit-btn,
    .go-back-btn {
        height: 48px;
        border-radius: 16px;
        font-size: 14px;
    }

    .otp-page .auth-card {
        padding-top: 40px;
        justify-content: space-between;
    }

    .go-back-btn {
        margin-top: 12px;
    }
}

@media (max-width: 390px) {
    .otp-page .auth-card {
        padding-left: 18px;
        padding-right: 18px;

    }

    .otp-inputs {
        gap: 10px;
    }

    .otp-input {
        width: calc((100vw - 66px) / 4);
        max-width: 52px;
        height: calc((100vw - 66px) / 4);
        max-height: 52px;
    }

    .otp-resend {
        margin-bottom: 80px;
    }
}

.nationality-select {
    position: relative;
    width: 100%;
    height: 56px;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    background: #ffffff;
    color: #1f1f1f;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nationality-select:hover,
.nationality-select.is-open,
.nationality-select.is-filled {
    border-color: #d5d5d5;
}

.nationality-btn {
    width: 100%;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #1f1f1f;
    font-size: 16px;
    font-weight: 400;
    text-align: left;
}

.nationality-text {
    color: #a7a7a7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nationality-icon {
    flex: 0 0 auto;
    color: #8f8f8f;
    transition: transform 0.2s ease;
}


.nationality-select.is-open .nationality-icon {
    transform: rotate(180deg);
}

.nationality-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    max-height: 220px;
    overflow: auto;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    background: #ffffff;
    padding: 12px 16px;
    z-index: 35;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: 0.2s ease;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.nationality-select.is-open .nationality-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nationality-option {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #e6e6e6;
    background: transparent;
    padding: 14px 0;
    color: #8a8a8a;
    font-size: 16px;
    font-weight: 400;
    text-align: left;
}

.nationality-option:last-child {
    border-bottom: 0;
}

.nationality-option:hover {
    color: #b08301;
}

/* Mobile */
@media (max-width: 640px) {
    .nationality-select {
        height: 48px;
        border-radius: 14px;
    }

    .nationality-btn {
        padding: 0 12px;
        font-size: 14px;
    }

    .nationality-dropdown {
        border-radius: 14px;
        padding: 10px 14px;
    }

    .nationality-option {
        padding: 12px 0;
        font-size: 14px;
    }
}
.date-input-icon {
    position: absolute;
    top: 50%;
    right: 20px;
    z-index: 2;

    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    pointer-events: none;
    color: #8B8B8B;
}

.date-input-icon svg {
    width: 20px;
    height: 20px;

    display: block;
    flex-shrink: 0;

    fill: currentColor;
}