.register-page {
    --register-blue: #0a4ee4;
    --register-navy: #061d52;
    height: 100vh;
    overflow: hidden;
}

.register-shell {
    height: 100vh;
    min-height: 560px;
    grid-template-columns: minmax(0, 1fr) min(50vw, 91vh);
    overflow: hidden;
}

.register-form-panel {
    display: block;
    height: 100vh;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    padding: 30px clamp(26px, 5vw, 76px);
}

.register-form-panel::-webkit-scrollbar,
.register-page::-webkit-scrollbar { display: none; }

.register-form-wrap {
    width: min(560px, 100%);
    margin: 0 auto;
    padding: 16px 0;
}

.register-brand {
    width: 240px;
    margin-bottom: 66px;
}

.register-form { gap: 14px; }

.register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.register-form .login-field { gap: 6px; }

.register-form .login-field > label {
    color: #151d2e;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.register-form .login-field input {
    height: 59px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--login-field);
    color: #111827;
    padding: 0 13px;
    font: inherit;
    font-size: 15px;
    transition: border-color .2s ease, background .2s ease;
}

.register-form .login-field input::placeholder { color: #98a2b3; }

.register-form .login-field input:focus {
    border-color: transparent;
    outline: none;
    background: var(--login-field);
    box-shadow: none;
}

.register-form .login-field input.is-invalid {
    border-color: #d92d20;
    background: #fffafa;
}

.register-password-grid .login-password input { padding-right: 45px; }
.register-password-match { grid-column: 2; }

.register-password-toggle { color: #7c8798 !important; }
.register-password-toggle:focus-visible {
    outline: 2px solid var(--register-blue);
    outline-offset: 1px;
}

.register-field-help,
.register-field-error {
    display: block;
    margin: 0 1px;
    font-size: 11px;
    line-height: 1.4;
}

.register-field-help { color: #667085; }
.register-field-error { min-height: 0; color: #b42318; }
.register-field-error:empty { display: none; }

.register-custom-select { position: relative; }

.register-form .login-field select.register-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.register-select-trigger {
    display: flex;
    width: 100%;
    height: 59px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    outline: none;
    background: var(--login-field);
    color: #111827;
    padding: 0 16px 0 13px;
    font: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}

.register-select-trigger > span { min-width: 0; }
.register-select-trigger > i { color: #667085; font-size: 13px; transition: transform .16s ease; }
.register-custom-select.is-open .register-select-trigger > i { transform: rotate(180deg); }

.register-select-trigger:focus-visible {
    border-color: #b8c9f4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 78, 228, .12);
}

.register-select-trigger[aria-invalid="true"] { border-color: #d92d20; }

.register-select-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    display: grid;
    max-height: 210px;
    gap: 4px;
    overflow-y: auto;
    border: 1px solid #e3e8f2;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 12px 28px rgba(6, 29, 82, .14);
    scrollbar-width: none;
}

.register-select-menu[hidden] { display: none; }
.register-select-menu::-webkit-scrollbar { display: none; }

.register-select-option {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-radius: 7px;
    background: #fff;
    padding: 9px 11px;
    color: #263a5a;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.register-select-option > i { opacity: 0; color: var(--register-blue); font-size: 12px; }
.register-select-option[aria-selected="true"] { background: #eef3ff; color: var(--register-blue); }
.register-select-option[aria-selected="true"] > i { opacity: 1; }
.register-select-option:hover,
.register-select-option:focus-visible {
    outline: none;
    background: #0a4ee4;
    color: #fff;
}
.register-select-option:hover > i,
.register-select-option:focus-visible > i { color: #fff; }

.register-password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin: -7px 0 0;
    padding: 0;
    list-style: none;
}

.register-password-rules li {
    color: #7c8798;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.register-password-rules li::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #cbd2dc;
    content: "";
    vertical-align: 1px;
}

.register-password-rules li.is-valid { color: #18794e; }
.register-password-rules li.is-valid::before { background: #12b76a; }

.register-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #667085;
    cursor: pointer;
    font-size: 11px;
    line-height: 1.5;
}

.register-terms input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 1px 0 0;
    accent-color: var(--register-blue);
}

.register-optional-consent {
    color: #667085;
}

.register-submit {
    min-height: 52px;
    margin-top: 1px;
}

.register-submit i { display: none; }
.register-submit.is-loading i { display: inline-block; }
.register-submit:disabled { cursor: wait; opacity: .7; }

.register-login-link {
    margin: 15px 0 0;
    color: #667085;
    font-size: 12px;
    text-align: center;
}

.register-login-link a {
    color: var(--register-blue);
    font-weight: 600;
    text-decoration: none;
}

.register-login-link a:hover { text-decoration: underline; }

.register-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 900px) {
    .register-shell { grid-template-columns: 1fr; }
    .register-form-panel { min-height: 100vh; padding: 30px 24px; }
    .register-form-wrap { width: min(560px, 100%); }
    .register-grid { gap: 14px; }
    .register-shell .login-visual { display: none; }
}

@media (max-width: 760px) {
    .register-shell {
        height: auto;
        min-height: 100vh;
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .register-page {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        scrollbar-width: none;
    }

    .register-form-panel {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding: 28px 22px 32px;
    }

    .register-form-wrap { width: min(480px, 100%); }
    .register-brand { width: 190px; margin-bottom: 58px; }
    .register-copy h1 { font-size: 30px; }
    .register-grid { grid-template-columns: 1fr; gap: 13px; }
    .register-password-grid { grid-template-columns: 1fr 1fr; }
    .register-form .login-field input { height: 58px; }
}

@media (max-width: 390px) {
    .register-form-panel { padding-inline: 18px; }
    .register-password-grid { grid-template-columns: 1fr; }
    .register-password-match { grid-column: 1; }
}
