:root {
    --auth-green: #08a64b;
    --auth-green-dark: #07823d;
    --auth-green-soft: #e8f7ef;
    --auth-ink: #202322;
    --auth-muted: #6c7772;
    --auth-line: #d7eadf;
    --auth-danger: #b42318;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-switch {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 5px;
    margin-bottom: 22px;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    background: #f7fbf9;
}

.login-switch button {
    height: 38px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--auth-muted);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.login-switch button.active {
    background: var(--auth-green);
    color: #fff;
}

.login-flow {
    display: none;
}

.login-flow.active {
    display: block;
}

.password-toggle-wrap {
    position: relative;
    display: block;
}

.password-toggle-wrap input {
    padding-right: 48px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
    z-index: 3;
}

.password-toggle-btn i,
.toggle-password i {
    position: static !important;
    transform: none !important;
    color: inherit !important;
    font-size: inherit !important;
}

.select2-container {
    width: 100% !important;
}

.select2-container--open,
.select2-dropdown {
    z-index: 99999 !important;
}

@media (max-width: 760px) {
    .auth-page {
        padding: 0;
        place-items: stretch;
    }
}
/* Keep native selects and Select2 controls aligned with text inputs. */
select,
.form-select,
.form-control,
.select2-container .select2-selection--single {
    min-height: 42px;
}
.select2-container .select2-selection--single {
    display: flex;
    align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
}
