.auth-page {
    --rs-auth-bg: #f5f6f8;
    --rs-auth-panel-bg: #ffffff;
    --rs-auth-panel-border: #d7dde7;
    --rs-auth-panel-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    --rs-auth-ink: #1c273c;
    --rs-auth-muted: #4c5a70;
    --rs-auth-subtle: #7987a1;
    --rs-auth-accent: #485469;
    --rs-auth-accent-soft: rgba(72, 84, 105, 0.08);
    --rs-auth-brand: #485469;
    --rs-auth-brand-hover: #7987a1;
    --rs-auth-button-bg: #485469;
    --rs-auth-button-border: #485469;
    --rs-auth-button-hover-bg: #7987a1;
    --rs-auth-button-hover-border: #7987a1;
    --rs-auth-line: #d7dde7;
    --rs-auth-input-bg: #ffffff;
    --rs-auth-input-border: #cdd4e0;
    --rs-auth-input-focus-border: #b4bdce;
    --rs-auth-input-placeholder: #97a3b9;
    --rs-auth-input-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    --rs-auth-chip-bg: #ffffff;
    --rs-auth-chip-border: #d7dde7;
    --rs-auth-chip-ink: #485469;
    --rs-auth-header-link-bg: #ffffff;
    --rs-auth-header-link-border: #d7dde7;
    --rs-auth-header-link-ink: #4c5a70;
    background: var(--rs-auth-bg);
    color: var(--rs-auth-ink);
    min-height: 100vh;
}

html[data-bs-theme='dark'] .auth-page,
.dark-theme.auth-page {
    --rs-auth-bg: rgb(31, 33, 35);
    --rs-auth-panel-bg: #2C2F33;
    --rs-auth-panel-border: #40444B;
    --rs-auth-panel-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    --rs-auth-ink: #DCDDDE;
    --rs-auth-muted: #B9BBBE;
    --rs-auth-subtle: #72767D;
    --rs-auth-accent: #DCDDDE;
    --rs-auth-accent-soft: rgba(64, 68, 75, 0.45);
    --rs-auth-brand: #B9BBBE;
    --rs-auth-brand-hover: #DCDDDE;
    --rs-auth-button-bg: #40444B;
    --rs-auth-button-border: #40444B;
    --rs-auth-button-hover-bg: #36393E;
    --rs-auth-button-hover-border: #36393E;
    --rs-auth-line: #40444B;
    --rs-auth-input-bg: #22272f;
    --rs-auth-input-border: #4a515b;
    --rs-auth-input-focus-border: #58606a;
    --rs-auth-input-placeholder: #8f98a7;
    --rs-auth-input-shadow: none;
    --rs-auth-chip-bg: #23272A;
    --rs-auth-chip-border: #40444B;
    --rs-auth-chip-ink: #DCDDDE;
    --rs-auth-header-link-bg: #2C2F33;
    --rs-auth-header-link-border: #40444B;
    --rs-auth-header-link-ink: #DCDDDE;
}

.auth-page a {
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.rs-auth-shell {
    min-height: 100vh;
    padding: 32px 18px 40px;
}

.rs-auth-shell__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto 24px;
}

.auth-page-layout--wide .rs-auth-shell__header {
    max-width: 1100px;
}

.rs-auth-brand {
    display: inline-flex;
    align-items: center;
}

.rs-auth-brand__logo {
    width: 188px;
    max-width: 100%;
    height: auto;
}

.rs-auth-shell__header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.rs-auth-shell__header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--rs-auth-header-link-border);
    background: var(--rs-auth-header-link-bg);
    color: var(--rs-auth-header-link-ink);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: none;
}

.rs-auth-shell__header-link:hover,
.rs-auth-shell__header-link:focus {
    color: var(--rs-auth-ink);
    text-decoration: none;
    border-color: var(--rs-auth-panel-border);
    outline: none;
}

.rs-auth-shell__main {
    max-width: 700px;
    margin: 0 auto;
}

.auth-page-layout--wide .rs-auth-shell__main {
    max-width: 1100px;
}

.rs-auth-panel__surface {
    width: 100%;
    padding: 32px;
    border: 1px solid var(--rs-auth-panel-border);
    border-radius: 0.5rem;
    background: var(--rs-auth-panel-bg);
    box-shadow: var(--rs-auth-panel-shadow);
}

.rs-auth-panel__surface--wide {
    padding: 36px;
}

.rs-auth-stage {
    min-height: 100%;
}

.rs-auth-card,
.rs-auth-state,
.rs-auth-legal {
    max-width: 100%;
}

.rs-auth-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.rs-auth-card--compact {
    max-width: 640px;
}

.rs-auth-card--wide {
    max-width: 100%;
}

.rs-auth-card__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rs-auth-card__eyebrow {
    color: var(--rs-auth-accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rs-auth-card__title {
    margin: 0;
    color: var(--rs-auth-ink);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.rs-auth-card__copy {
    margin: 0;
    color: var(--rs-auth-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

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

.rs-auth-form__row,
.rs-auth-grid {
    display: grid;
    gap: 16px;
}

.rs-auth-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rs-auth-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rs-auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rs-auth-field__label {
    color: var(--rs-auth-ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-page .form-control,
.auth-page .form-select,
.auth-page .formControl {
    width: 100%;
    min-height: 46px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 2px solid var(--rs-auth-input-border);
    border-radius: var(--bs-border-radius, 0.375rem);
    background: var(--rs-auth-input-bg);
    color: var(--rs-auth-ink);
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.auth-page .form-control::placeholder,
.auth-page .formControl::placeholder {
    color: var(--rs-auth-input-placeholder);
    font-weight: 400;
}

.auth-page .form-control:focus,
.auth-page .form-select:focus,
.auth-page .formControl:focus {
    border-color: var(--rs-auth-input-focus-border);
    box-shadow: none;
    background: var(--rs-auth-input-bg);
    color: var(--rs-auth-ink);
}

.auth-page textarea.form-control {
    min-height: 120px;
}

.rs-auth-password {
    position: relative;
}

.rs-auth-password .form-control {
    padding-right: 3rem;
}

.rs-auth-password__toggle {
    position: absolute;
    top: 50%;
    right: 0.7rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--rs-auth-input-placeholder);
    transition: background-color 0.18s ease, color 0.18s ease;
}

.rs-auth-password__toggle:hover,
.rs-auth-password__toggle:focus {
    background: rgba(72, 84, 105, 0.08);
    color: var(--rs-auth-ink);
}

.rs-auth-password__toggle:focus-visible {
    outline: 2px solid rgba(72, 84, 105, 0.25);
    outline-offset: 2px;
}

.rs-auth-password__toggle i {
    pointer-events: none;
}

.auth-page input:-webkit-autofill,
.auth-page input:-webkit-autofill:hover,
.auth-page input:-webkit-autofill:focus,
.auth-page textarea:-webkit-autofill,
.auth-page textarea:-webkit-autofill:hover,
.auth-page textarea:-webkit-autofill:focus,
.auth-page select:-webkit-autofill,
.auth-page select:-webkit-autofill:hover,
.auth-page select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--rs-auth-ink);
    -webkit-box-shadow: 0 0 0 1000px var(--rs-auth-input-bg) inset;
    box-shadow: 0 0 0 1000px var(--rs-auth-input-bg) inset;
    transition: background-color 9999s ease-in-out 0s;
}

.auth-page .btn,
.auth-page input.btn,
.auth-page button.btn {
    min-height: 52px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    text-align: center;
    box-shadow: none;
}

.auth-page a.btn,
.auth-page button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-page a.btn.btn-block,
.auth-page button.btn.btn-block {
    display: flex;
    width: 100%;
}

.auth-page .btn-primary,
.auth-page .btn-az-primary {
    background-color: var(--rs-auth-button-bg);
    border-color: var(--rs-auth-button-border);
    color: #ffffff;
}

.auth-page .btn-primary:hover,
.auth-page .btn-primary:focus,
.auth-page .btn-az-primary:hover,
.auth-page .btn-az-primary:focus {
    background-color: var(--rs-auth-button-hover-bg);
    border-color: var(--rs-auth-button-hover-border);
    color: #ffffff;
}

.auth-page .btn-outline-primary {
    border-color: var(--rs-auth-button-border);
    color: var(--rs-auth-ink);
    background: transparent;
}

.auth-page .btn-outline-primary:hover,
.auth-page .btn-outline-primary:focus {
    border-color: var(--rs-auth-button-hover-border);
    background: var(--rs-auth-button-hover-bg);
    color: #ffffff;
}

.rs-auth-link-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 14px;
    align-items: center;
}

.rs-auth-link,
.rs-auth-link:visited {
    color: var(--rs-auth-brand);
    font-weight: 600;
    text-decoration: none;
}

.rs-auth-link:hover,
.rs-auth-link:focus {
    color: var(--rs-auth-brand-hover);
    text-decoration: underline;
}

.rs-auth-divider {
    height: 1px;
    margin: 4px 0;
    background: var(--rs-auth-line);
}

.rs-auth-alert,
#loginError,
#registerError,
#error,
.error,
#error2FASetup {
    display: block;
    min-height: 0;
    padding: 14px 16px;
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 16px;
    background: rgba(254, 242, 242, 0.86);
    color: #b42318;
    font-size: 0.92rem;
    line-height: 1.65;
}

#loginError:empty,
#registerError:empty,
#error:empty,
.error:empty,
#error2FASetup:empty {
    display: none;
}

html[data-bs-theme='dark'] .rs-auth-alert,
html[data-bs-theme='dark'] #loginError,
html[data-bs-theme='dark'] #registerError,
html[data-bs-theme='dark'] #error,
html[data-bs-theme='dark'] .error,
html[data-bs-theme='dark'] #error2FASetup,
.dark-theme .rs-auth-alert,
.dark-theme #loginError,
.dark-theme #registerError,
.dark-theme #error,
.dark-theme .error,
.dark-theme #error2FASetup {
    background: rgba(127, 29, 29, 0.22);
    border-color: rgba(248, 113, 113, 0.28);
    color: #fecaca;
}

.rs-auth-alert--success {
    border-color: rgba(34, 197, 94, 0.16);
    background: rgba(240, 253, 244, 0.88);
    color: #15803d;
}

html[data-bs-theme='dark'] .rs-auth-alert--success,
.dark-theme .rs-auth-alert--success {
    background: rgba(20, 83, 45, 0.28);
    border-color: rgba(74, 222, 128, 0.22);
    color: #bbf7d0;
}

.rs-auth-alert--muted {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(248, 250, 252, 0.86);
    color: var(--rs-auth-muted);
}

html[data-bs-theme='dark'] .rs-auth-alert--muted,
.dark-theme .rs-auth-alert--muted {
    background: rgba(15, 23, 42, 0.44);
    border-color: rgba(148, 163, 184, 0.18);
    color: var(--rs-auth-muted);
}

.rs-auth-footer {
    padding-top: 18px;
    margin-top: 26px;
    border-top: 1px solid var(--rs-auth-line);
}

.rs-auth-footer__secondary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 16px;
    flex-wrap: wrap;
    color: var(--rs-auth-subtle);
    font-size: 0.9rem;
}

.rs-auth-footer__secondary a {
    color: var(--rs-auth-subtle);
    text-decoration: none;
}

.rs-auth-footer__secondary a:hover,
.rs-auth-footer__secondary a:focus {
    color: var(--rs-auth-ink);
}

.rs-auth-state {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 8px 0;
}

.rs-auth-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 22px;
    background: var(--rs-auth-accent-soft);
    color: var(--rs-auth-accent);
    font-size: 1.5rem;
}

.rs-auth-state--success .rs-auth-state__icon {
    background: rgba(34, 197, 94, 0.14);
    color: #16a34a;
}

.rs-auth-state--warning .rs-auth-state__icon {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.rs-auth-state__title {
    margin: 0;
    color: var(--rs-auth-ink);
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 700;
    line-height: 1.1;
}

.rs-auth-state__copy {
    max-width: 38rem;
    margin: 0;
    color: var(--rs-auth-muted);
    line-height: 1.75;
}

.rs-auth-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
    width: 100%;
}

.rs-auth-state__actions .btn {
    text-decoration: none;
}

.rs-auth-stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.rs-auth-stepper__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--rs-auth-line);
    border-radius: 999px;
    background: transparent;
    color: var(--rs-auth-subtle);
    font-size: 0.88rem;
    font-weight: 600;
}

html[data-bs-theme='dark'] .rs-auth-stepper__item,
.dark-theme .rs-auth-stepper__item {
    background: transparent;
}

.rs-auth-stepper__item.is-active {
    border-color: var(--rs-auth-panel-border);
    background: var(--rs-auth-accent-soft);
    color: var(--rs-auth-accent);
}

.rs-auth-stepper__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: inherit;
    font-size: 0.8rem;
    font-weight: 700;
}

html[data-bs-theme='dark'] .rs-auth-stepper__count,
.dark-theme .rs-auth-stepper__count {
    background: rgba(255, 255, 255, 0.06);
}

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

.auth-page .serviceSelectBlock {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 160px;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--rs-auth-line);
    border-radius: 22px;
    background: transparent;
    box-shadow: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

html[data-bs-theme='dark'] .auth-page .serviceSelectBlock,
.dark-theme .auth-page .serviceSelectBlock {
    background: transparent;
}

.auth-page .serviceSelectBlock:hover,
.auth-page .serviceSelectBlock:focus {
    transform: translateY(-2px);
    border-color: var(--rs-auth-panel-border);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}

.auth-page .serviceSelectBlock > .iconBlock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: var(--rs-auth-accent-soft);
    color: var(--rs-auth-accent);
    font-size: 1.2rem;
}

.auth-page .serviceSelectBlockSelected {
    border-color: var(--rs-auth-panel-border);
    background: var(--rs-auth-accent-soft);
    box-shadow: none;
}

html[data-bs-theme='dark'] .auth-page .serviceSelectBlockSelected,
.dark-theme .auth-page .serviceSelectBlockSelected {
    background: rgba(64, 68, 75, 0.45);
}

.rs-auth-section-card {
    padding: 20px;
    border: 1px solid var(--rs-auth-line);
    border-radius: 22px;
    background: transparent;
}

html[data-bs-theme='dark'] .rs-auth-section-card,
.dark-theme .rs-auth-section-card {
    background: transparent;
}

.validationError {
    border-color: rgba(239, 68, 68, 0.56) !important;
    box-shadow: 0 0 0 0.18rem rgba(239, 68, 68, 0.12) !important;
}

.rs-auth-check:not(.ckbox) {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--rs-auth-muted);
    font-size: 0.92rem;
}

.rs-auth-check:not(.ckbox) input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.rs-auth-check.ckbox {
    display: inline-block;
    color: var(--rs-auth-muted);
    font-size: 0.92rem;
    line-height: 1.45;
    cursor: pointer;
}

.rs-auth-check.ckbox input[type=checkbox] {
    position: absolute;
    top: 2px;
    left: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.rs-auth-check.ckbox span {
    display: inline-block;
    padding-left: 26px;
}

.rs-auth-check.ckbox span:before,
.rs-auth-check.ckbox span:after {
    top: 2px;
    left: 0;
}

.rs-auth-check.ckbox span:before {
    border-color: var(--rs-auth-input-border);
    background-color: var(--rs-auth-input-bg);
    border-radius: 4px;
}

.rs-auth-check.ckbox span:after {
    border-radius: 4px;
    background-color: var(--rs-auth-button-bg);
}

.rs-auth-check.ckbox input[type=checkbox]:focus + span:before {
    border-color: var(--rs-auth-input-focus-border);
    box-shadow: 0 0 0 3px var(--rs-auth-accent-soft);
}

.rs-auth-phone-note {
    color: var(--rs-auth-subtle);
    font-size: 0.84rem;
    line-height: 1.6;
}

.rs-two-factor-code {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 360px);
}

.rs-two-factor-code__digit {
    min-height: 56px;
    padding: 0;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.rs-auth-inline-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin-top: 10px;
    color: var(--rs-auth-subtle);
    font-size: 0.9rem;
    line-height: 1.5;
}

.rs-auth-inline-action__button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--rs-auth-brand);
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    text-decoration: none;
}

.rs-auth-inline-action__button:hover,
.rs-auth-inline-action__button:focus {
    color: var(--rs-auth-brand-hover);
    text-decoration: underline;
}

.rs-auth-inline-action__button:disabled {
    color: var(--rs-auth-subtle);
    cursor: default;
    text-decoration: none;
    opacity: 1;
}

.rs-auth-inline-action__status {
    display: none;
    margin-top: 6px;
    color: var(--rs-auth-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.rs-auth-inline-action__status:not(:empty) {
    display: block;
}

.rs-auth-legal__header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--rs-auth-line);
}

.rs-auth-legal__title {
    margin: 0;
    color: var(--rs-auth-ink);
    font-size: clamp(2rem, 3vw, 2.9rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.rs-auth-legal__meta {
    margin: 0;
    color: var(--rs-auth-subtle);
}

.legal-section + .legal-section {
    margin-top: 28px;
}

.legal-section h2 {
    margin: 0 0 10px;
    color: var(--rs-auth-ink);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
}

.legal-section h3 {
    margin: 18px 0 8px;
    color: var(--rs-auth-ink);
    font-size: 0.98rem;
    font-weight: 700;
}

.legal-section p,
.legal-section div,
.definition-list dd {
    color: var(--rs-auth-muted);
    font-size: 0.96rem;
    line-height: 1.8;
}

.legal-section p + p,
.legal-section p + ul,
.legal-section p + ol,
.legal-section ul + p,
.legal-section ol + p,
.definition-list dd + dt {
    margin-top: 12px;
}

.definition-list dt {
    margin-top: 16px;
    color: var(--rs-auth-ink);
    font-weight: 700;
}

.definition-list dt:first-child {
    margin-top: 0;
}

.legal-section ul,
.legal-section ol {
    margin: 0 0 16px 22px;
    color: var(--rs-auth-muted);
    font-size: 0.96rem;
    line-height: 1.8;
}

.legal-section li + li {
    margin-top: 8px;
}

.auth-page--terms .rs-auth-panel__surface--wide,
.auth-page--privacy .rs-auth-panel__surface--wide {
    padding: 28px 30px;
}

.auth-page--terms .rs-auth-legal,
.auth-page--privacy .rs-auth-legal {
    max-width: 920px;
    margin: 0 auto;
}

.auth-page--terms .rs-auth-legal__header,
.auth-page--privacy .rs-auth-legal__header {
    gap: 8px;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.auth-page--terms .rs-auth-legal__title,
.auth-page--privacy .rs-auth-legal__title {
    font-size: clamp(1.75rem, 2.5vw, 2.2rem);
    line-height: 1.14;
    letter-spacing: -0.02em;
}

.auth-page--terms .legal-section + .legal-section,
.auth-page--privacy .legal-section + .legal-section {
    margin-top: 24px;
}

.auth-page--terms .legal-section h2,
.auth-page--privacy .legal-section h2 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.auth-page--terms .legal-section h3,
.auth-page--privacy .legal-section h3 {
    margin: 14px 0 6px;
    font-size: 0.94rem;
}

.auth-page--terms .legal-section p,
.auth-page--terms .legal-section div,
.auth-page--terms .definition-list dd,
.auth-page--terms .legal-section ul,
.auth-page--terms .legal-section ol,
.auth-page--privacy .legal-section p,
.auth-page--privacy .legal-section div,
.auth-page--privacy .definition-list dd,
.auth-page--privacy .legal-section ul,
.auth-page--privacy .legal-section ol {
    font-size: 0.94rem;
    line-height: 1.72;
}

.passtrengthMeter {
    margin-top: 2px;
}

.passtrengthMeter > input {
    min-height: 54px;
    border-radius: 16px;
}

.passtrengthMeter .tooltip {
    z-index: 30;
}

.rs-auth-hide {
    display: none !important;
}

@media (max-width: 767.98px) {
    .rs-auth-shell {
        padding: 20px 12px 28px;
    }

    .rs-auth-shell__header {
        margin-bottom: 18px;
    }

    .rs-auth-brand__logo {
        width: 156px;
    }

    .rs-auth-shell__header-actions {
        justify-content: flex-end;
    }

    .rs-auth-shell__header-link {
        min-height: 40px;
        padding: 0 12px;
    }

    .rs-auth-panel__surface {
        padding: 22px 18px;
        border-radius: 0.5rem;
    }

    .rs-auth-panel__surface--wide {
        padding: 22px 18px;
    }

    .auth-page--terms .rs-auth-panel__surface--wide,
    .auth-page--privacy .rs-auth-panel__surface--wide {
        padding: 20px 16px;
    }

    .auth-page--terms .rs-auth-legal__header,
    .auth-page--privacy .rs-auth-legal__header {
        padding-bottom: 14px;
        margin-bottom: 18px;
    }

    .auth-page--terms .legal-section + .legal-section,
    .auth-page--privacy .legal-section + .legal-section {
        margin-top: 20px;
    }

    .rs-auth-grid--two,
    .rs-auth-grid--three,
    .rs-auth-select-grid {
        grid-template-columns: 1fr;
    }

    .rs-two-factor-code {
        gap: 6px;
    }

    .rs-auth-footer__secondary {
        flex-direction: column;
        align-items: flex-start;
    }
}
