html,
body {
    height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--light_blue_background);
    min-height: 100svh;
    color: var(--black-text);
}

.content-split {
    display: flex;
    min-height: 100svh;
}

.left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 25px 25px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.right {
    flex: 1;
    position: relative;
    background: var(--black_background);
    overflow: hidden;
    min-height: 320px;
}

.right img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .75;
}

.right .copy {
    position: absolute;
    bottom: clamp(16px, 3vh, 40px);
    left: clamp(16px, 3vw, 40px);
    right: clamp(16px, 3vw, 40px);
    color: var(--white_text);
    max-width: 640px;
}

.stack {
    width: 100%;
    max-width: 480px;
    min-height: 80%;
    margin-top: 10px;
    margin-bottom: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    flex-direction: column;
}

.brand .title {
    font-weight: 800;
    font-size: clamp(18px, 2.2vw, 22px);
    color: var(--black-text);
    text-align: center;
}

.brand .sub {
    font-size: clamp(12px, 1.8vw, 15px);
    color: var(--gray_text);
    margin-top: -4px;
    text-align: center;
}

.brand img {
    height: clamp(50px, 10vw, 100px);
}

.card {
    background: var(--white_background);
    border-radius: 16px;
    box-shadow: 0 0 5px var(--gray_background), 0 0 10px color-mix(in srgb, var(--gray_text) 50%, transparent);
    padding: clamp(16px, 3.5vw, 24px);
    margin: 20px 0 20px;
}

.card h2 {
    margin: 6px 0 4px 0;
    font-size: clamp(18px, 2.5vw, 20px);
    color: var(--black-text);
}

.muted {
    color: var(--gray_text);
    font-size: clamp(14px, 1.8vw, 15px);
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 10px;
    margin: 10px 0;
    font-size: 1.5rem;
}

.code-wrap {
    margin: 14px 0;
}

.otp-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(6px, 2vw, 12px);
    width: 100%;
    max-width: 100%;
}

.otp-input {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 1 / 1;
    text-align: center;
    font-size: clamp(20px, 5vw, 28px);
    border: 2px solid var(--gray_text);
    border-radius: 12px;
    outline: none;
    transition: border .2s, box-shadow .2s;
    box-shadow: 0 1px 0 var(--white_background), 0 -2px 5px color-mix(in srgb, var(--gray_text) 40%, transparent) inset;
}

.otp-input:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-orange) 20%, transparent);
}

.otp-input:hover {
    border: 2px solid var(--gray_text);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-orange) 10%, transparent);
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    transition: transform .02s;
    font-size: clamp(14px, 2vw, 16px);
    background: var(--primary-blue);
    color: var(--white_text);
}

.btn:active {
    transform: translateY(1px);
}

.back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray_text);
    text-decoration: none;
    font-size: 13px;
    margin-top: 12px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.lang {
    position: sticky;
    top: 12px;
    left: 100%;
    z-index: 30;
    margin: 0 auto 10px;
    display: inline-flex;
    background: color-mix(in srgb, var(--primary-blue) 25%, var(--white_text));
    border: 1px solid var(--gray_text);
    border-radius: 999px;
    padding: 6px 10px;
    min-width: 50px;
    font-size: 12px;
    color: var(--black-text);
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.lang-btn:focus {
    outline: none;
}

.lang:focus-within {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-blue) 35%, transparent);
}

.icon-globe {
    width: 16px;
    height: 16px;
    opacity: .9;
}

.icon-caret {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

.lang-list {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: var(--white_background);
    border: 1px solid var(--gray_text);
    border-radius: 12px;
    box-shadow: 0 8px 30px color-mix(in srgb, var(--black-text) 12%, transparent);
    list-style: none;
    padding: 6px;
    min-width: 100%;
    max-height: 220px;
    overflow: auto;
    display: none;
}

.lang-list.open {
    display: block;
}

.lang-list li {
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}

.lang-list li[aria-selected="true"] {
    font-weight: 600;
}

.lang-list li:hover,
.lang-list li.active {
    background: color-mix(in srgb, var(--primary-blue) 15%, var(--white_text));
}

.left_label {
    margin: 0 auto;
    font-size: 0.6em;
    padding-left: 0.5em;
    padding-bottom: 0.1em;
}

.flex_row_two {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 10px;
    margin: 20px 0;
    font-size: 1.5rem;
}

.flex_row_two label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray_text);
    cursor: pointer;
}

.flex_row_two input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0 auto;
}

.text_link {
    color: var(--accent-orange);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.text_link:hover,
.text_link:focus {
    color: color-mix(in srgb, var(--accent-orange) 80%, var(--black-text));
    cursor: pointer;
}

#resend_btn.disabled {
    pointer-events: none;
    opacity: 0.75;
    cursor: not-allowed;
}

.pill {
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(56px, 9vw, 80px);
    height: clamp(56px, 9vw, 80px);
    border-radius: 50%;
    margin: 0 auto 8px auto;
    background-color: var(--accent-orange);
    text-align: center;
}

.pill i {
    font-size: clamp(28px, 6vw, 45px);
    color: var(--white_text);
}

.divider {
    height: 1px;
    background: var(--gray_background);
    margin: 18px 0 12px;
    border: 0;
}

.back.center {
    display: inline-flex;
    margin-top: 8px;
}

@media (max-width: 420px) {
    .otp-grid {
        gap: 8px;
    }

    .otp-input {
        aspect-ratio: 1 / 1.2;
    }
}

@media (max-width: 720px) {
    .right {
        display: none;
    }

    .left {
        padding: 16px;
    }

    .stack {
        max-width: 520px;
    }

    .row {
        gap: 6px;
    }
}

@media (max-height: 620px) {
    .right {
        display: none;
    }

    .left {
        padding: 12px;
    }

    .brand {
        margin-bottom: 8px;
    }

    .pill {
        margin-bottom: 6px;
    }
}

@media (max-width: 600px) {
    .form-row {
        max-width: 90%;
    }
    .form-footer .submit {
        max-width: 90%;
        font-size: 14px;
        padding: 10px;
    }
}
