:root {
    --auth-ink: var(--sadid-ink, #14213d);
    --auth-muted: var(--sadid-muted, #6b7a99);
    --auth-primary: var(--sadid-primary, #2563eb);
    --auth-primary-dark: var(--sadid-primary-hover, #1d4ed8);
    --auth-accent: var(--sadid-accent, #0ea5e9);
    --auth-warm: var(--sadid-accent, #0ea5e9);
    --auth-line: var(--sadid-line, #dbe7f5);
    --auth-surface: var(--sadid-canvas, #f2f7ff);
    --auth-white: var(--sadid-surface, #ffffff);
    --auth-shadow: 0 28px 70px rgba(20, 33, 61, 0.13);
}

body.auth-surface {
    --bs-primary: var(--auth-primary);
    --bs-primary-rgb: 37, 99, 235;
    --bs-link-color: var(--auth-primary);
    --bs-link-hover-color: var(--auth-primary-dark);
    min-width: 320px;
    color: var(--auth-ink);
    font-family: IRANYekanX, sans-serif !important;
    background:
        radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.08), transparent 25rem),
        radial-gradient(circle at 9% 85%, rgba(14, 165, 233, 0.08), transparent 28rem),
        linear-gradient(145deg, #edf5ff 0%, #fbfdff 48%, #f1f7ff 100%);
}

body.auth-surface button,
body.auth-surface input,
body.auth-surface select,
body.auth-surface textarea {
    font-family: IRANYekanX, sans-serif !important;
}

body.auth-surface .text-primary,
body.auth-surface a.text-primary,
body.auth-surface .forgot-link,
body.auth-surface .login-link-text,
body.auth-surface .label-icon {
    color: var(--auth-primary) !important;
}

body.auth-surface .bg-primary-subtle {
    background: rgba(37, 99, 235, 0.07) !important;
}

body.auth-surface::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.52;
    background-image:
        linear-gradient(rgba(20, 33, 61, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 33, 61, 0.025) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body.auth-surface #main {
    position: relative;
    z-index: 1;
    width: 100%;
}

.auth-global-nav {
    position: fixed;
    z-index: 1050;
    top: 18px;
    right: 0;
    left: 0;
    padding: 0 22px;
}

.auth-global-nav__inner {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
    align-items: center;
    width: min(1280px, 100%);
    min-height: 64px;
    margin: 0 auto;
    padding: 8px 10px 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 44px rgba(20, 33, 61, 0.09);
    backdrop-filter: blur(18px);
}

.auth-brand,
.auth-brand:hover {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    color: var(--auth-ink);
    text-decoration: none;
}

.auth-brand-mark {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.auth-brand-mark i {
    font-size: 1.35rem;
}

.auth-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.auth-brand-copy strong {
    font-size: 1.03rem;
    font-weight: 900;
}

.auth-brand-copy small {
    margin-top: 4px;
    color: var(--auth-muted);
    font-size: 0.68rem;
}

.auth-route-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid #dbe7f5;
    border-radius: 14px;
    background: #eef5ff;
}

.auth-route-link,
.auth-route-link:hover {
    padding: 9px 14px;
    border-radius: 10px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    transition: 180ms ease;
}

.auth-route-link:hover {
    color: var(--auth-primary);
    background: rgba(255, 255, 255, 0.9);
}

.auth-route-link.is-active {
    color: #fff;
    background: var(--auth-primary);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.auth-home-link,
.auth-home-link:hover {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 7px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    color: var(--auth-ink);
    background: var(--auth-white);
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
}

/* Shared page canvas */
body.auth-surface .login-page-wrapper,
body.auth-surface .register-page-wrapper,
body.auth-surface .auth-page-wrapper,
body.auth-surface #main > .min-vh-100 {
    min-height: 100vh !important;
    padding-top: 112px !important;
    padding-bottom: 42px !important;
    background: transparent !important;
    overflow: visible;
}

body.auth-surface .login-bg-animated,
body.auth-surface .register-background-animated,
body.auth-surface .auth-bg-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body.auth-surface .login-bg-animated .bg-shape,
body.auth-surface .register-background-animated .bg-shape,
body.auth-surface .auth-bg-shapes .bg-shape {
    filter: blur(110px);
    opacity: 0.12;
}

/* Login and corrector split cards */
body.auth-surface .login-container,
body.auth-surface .register-container {
    width: min(1180px, calc(100% - 36px));
    max-width: 1180px;
}

body.auth-surface .login-card-modern,
body.auth-surface .register-card-modern {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--auth-shadow);
}

body.auth-surface .login-card-modern > .row,
body.auth-surface .register-card-modern > .row {
    min-height: 660px;
}

body.auth-surface .login-left-panel,
body.auth-surface .register-left-panel {
    position: relative;
    display: flex;
    align-items: center;
    padding: 56px 46px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.1), transparent 15rem),
        linear-gradient(155deg, #0d3038 0%, #1d4ed8 58%, #123d72 100%);
}

body.auth-surface .login-left-panel::after,
body.auth-surface .register-left-panel::after {
    position: absolute;
    right: -110px;
    bottom: -140px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    box-shadow:
        0 0 0 45px rgba(255, 255, 255, 0.04),
        0 0 0 90px rgba(255, 255, 255, 0.025);
    content: "";
}

body.auth-surface .login-welcome-title,
body.auth-surface .register-welcome-title {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 950;
    letter-spacing: -0.04em;
}

body.auth-surface .login-welcome-text,
body.auth-surface .register-welcome-text {
    max-width: 36ch;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.9;
}

body.auth-surface .login-features,
body.auth-surface .register-features {
    gap: 14px;
}

body.auth-surface .login-feature-item,
body.auth-surface .register-feature-item {
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
}

body.auth-surface .feature-icon-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.13);
}

body.auth-surface .login-right-panel,
body.auth-surface .register-right-panel {
    padding: clamp(34px, 5vw, 64px);
    background: linear-gradient(180deg, #ffffff, #f7fcfc);
}

/* Registration cards */
body.auth-surface #main > .min-vh-100 > .container {
    width: min(1020px, calc(100% - 32px));
    max-width: 1020px;
}

body.auth-surface #main > .min-vh-100 > .container > .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
}

body.auth-surface #main > .min-vh-100 > .container > .row > [class*="col-"] > .text-center:first-child {
    margin-bottom: 22px !important;
    padding: 0 18px;
}

body.auth-surface #main > .min-vh-100 > .container > .row > [class*="col-"] > .text-center:first-child h5 {
    color: var(--auth-ink);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 950 !important;
}

body.auth-surface #main > .min-vh-100 > .container > .row > [class*="col-"] > .text-center:first-child p {
    margin-top: 7px;
    color: var(--auth-muted) !important;
    font-size: 0.9rem !important;
}

body.auth-surface #main > .min-vh-100 .card,
body.auth-surface .auth-page-wrapper .card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.94) !important;
    border-radius: 28px !important;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--auth-shadow) !important;
}

body.auth-surface #main > .min-vh-100 .card-body {
    padding: clamp(28px, 5vw, 52px) !important;
}

body.auth-surface .register-form-header {
    position: relative;
    margin: calc(-1 * clamp(28px, 5vw, 52px)) calc(-1 * clamp(28px, 5vw, 52px)) 34px !important;
    padding: 34px clamp(24px, 5vw, 52px) 28px;
    border-bottom: 1px solid #dbe8f7;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.055), rgba(14, 165, 233, 0.04));
}

body.auth-surface .register-form-header h4,
body.auth-surface .login-form-wrapper h4,
body.auth-surface .auth-page-wrapper h4 {
    color: var(--auth-ink);
    font-weight: 900 !important;
    letter-spacing: -0.025em;
}

body.auth-surface .form-stepper {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

body.auth-surface .stepper-number {
    width: 42px;
    height: 42px;
    border: 4px solid #fff;
    color: #64748b;
    background: #dfebf8;
    box-shadow: 0 4px 12px rgba(20, 33, 61, 0.09);
}

body.auth-surface .stepper-item.active .stepper-number {
    color: #fff;
    background: var(--auth-primary);
    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.22);
}

body.auth-surface .stepper-item.completed .stepper-number {
    color: #fff;
    background: var(--auth-accent);
}

body.auth-surface .stepper-line {
    height: 2px;
    background: #d8e7f7;
}

body.auth-surface .stepper-line.completed {
    background: var(--auth-accent);
}

body.auth-surface .stepper-label {
    color: #6b7a99;
    font-size: 0.76rem;
    font-weight: 750;
}

body.auth-surface .stepper-item.active .stepper-label {
    color: var(--auth-primary);
}

body.auth-surface .form-section-modern {
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid #dce8f7;
    border-radius: 22px;
    background: #fbfdff;
}

body.auth-surface .section-header {
    padding-bottom: 14px;
    border-bottom: 1px solid #dbe8f7;
}

/* Form controls */
body.auth-surface .form-label {
    margin-bottom: 8px;
    color: #33496f;
    font-size: 0.82rem;
    font-weight: 800;
}

body.auth-surface .form-control,
body.auth-surface .form-select,
body.auth-surface .select2-container--default .select2-selection--single,
body.auth-surface .select2-container--default .select2-selection--multiple {
    min-height: 49px !important;
    border: 1px solid #d6e4f6 !important;
    border-radius: 13px !important;
    color: var(--auth-ink);
    background-color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(20, 33, 61, 0.025);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.auth-surface .form-control:focus,
body.auth-surface .form-select:focus,
body.auth-surface .select2-container--focus .select2-selection,
body.auth-surface .select2-container--open .select2-selection {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
    outline: 0;
}

body.auth-surface .select2-container--default .select2-selection--multiple .select2-selection__choice {
    border: 0 !important;
    color: #fff !important;
    background: var(--auth-primary) !important;
}

body.auth-surface .select2-container--default .select2-results__option--highlighted[aria-selected] {
    color: #fff !important;
    background: var(--auth-primary) !important;
}

body.auth-surface .select2-container--default .select2-results__option[aria-selected="true"] {
    color: var(--auth-ink) !important;
    background: rgba(37, 99, 235, 0.08) !important;
}

body.auth-surface .select2-search--dropdown .select2-search__field:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

body.auth-surface .form-control::placeholder {
    color: #91a8ad !important;
}

body.auth-surface .invalid-feedback,
body.auth-surface .help-block {
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 650;
}

body.auth-surface .form-text,
body.auth-surface .form-hint {
    color: #71819f !important;
    font-size: 0.74rem;
}

body.auth-surface .btn {
    min-height: 46px;
    border-radius: 13px !important;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

body.auth-surface .btn:hover {
    transform: translateY(-1px);
}

body.auth-surface .btn-primary {
    border-color: var(--auth-primary);
    background: linear-gradient(135deg, var(--auth-primary), #3b82f6);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

body.auth-surface .btn-primary:hover,
body.auth-surface .btn-primary:focus {
    border-color: var(--auth-primary-dark);
    background: linear-gradient(135deg, var(--auth-primary-dark), var(--auth-primary));
}

body.auth-surface .btn-outline-secondary,
body.auth-surface .btn-light {
    border-color: #d8e7f7;
    color: #4b6084;
    background: var(--auth-white);
}

body.auth-surface .alert {
    border-radius: 15px !important;
    font-size: 0.8rem;
    line-height: 1.85;
}

body.auth-surface .alert-light {
    border-color: #d9e6f6 !important;
    color: #53678a !important;
    background: #f4f8ff !important;
}

body.auth-surface #persian-captcha,
body.auth-surface .captcha-display-box {
    display: grid;
    min-height: 52px !important;
    place-items: center;
    border: 1px dashed #60a5fa !important;
    border-radius: 13px !important;
    color: var(--auth-primary);
    background:
        repeating-linear-gradient(-45deg, rgba(37, 99, 235, 0.035) 0 8px, transparent 8px 16px),
        #f4f8ff !important;
}

body.auth-surface .login-tabs {
    padding: 6px !important;
    border: 1px solid #dbe7f5;
    border-radius: 15px !important;
    background: #eef5ff !important;
}

body.auth-surface .login-tab {
    min-height: 43px;
    border-radius: 11px !important;
}

body.auth-surface .tab-radio:checked + .login-tab {
    color: var(--auth-primary);
    background: #fff;
    box-shadow: 0 6px 16px rgba(20, 33, 61, 0.07);
}

body.auth-surface .register-buttons .btn {
    min-width: 112px;
    padding-inline: 14px;
    border-color: #d8e7f7;
    color: #45597d;
    background: #f8fbff;
}

body.auth-surface .register-buttons .btn:hover {
    border-color: var(--auth-primary);
    color: var(--auth-primary);
    background: #eef6ff;
}

body.auth-surface .step-navigation {
    margin-top: 28px !important;
    padding-top: 22px !important;
    border-color: #deebf8 !important;
}

body.auth-surface .step-navigation .btn {
    min-width: 132px;
}

body.auth-surface .register-login-link {
    color: var(--auth-muted);
}

/* Corrector registration follows the same single-card language as other roles. */
body.auth-surface .register-page-wrapper .register-container {
    width: min(1020px, calc(100% - 32px));
    max-width: 1020px;
}

body.auth-surface .register-page-wrapper .register-shell-row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
}

body.auth-surface .corrector-page-intro {
    margin-bottom: 22px;
    padding: 0 18px;
}

body.auth-surface .corrector-page-intro__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 11px;
    padding: 7px 11px;
    border: 1px solid rgba(37, 99, 235, 0.13);
    border-radius: 999px;
    color: var(--auth-primary);
    background: rgba(37, 99, 235, 0.055);
    font-size: 0.72rem;
    font-weight: 850;
}

body.auth-surface .corrector-page-intro h1 {
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 950;
    letter-spacing: -0.035em;
}

body.auth-surface .corrector-page-intro p {
    margin: 8px 0 0;
    color: var(--auth-muted);
    font-size: 0.9rem;
}

body.auth-surface .register-page-wrapper .register-card-modern {
    border-radius: 28px;
}

body.auth-surface .register-page-wrapper .register-card-modern > .row {
    display: block;
    min-height: 0;
}

body.auth-surface .register-page-wrapper .register-left-panel {
    display: none !important;
}

body.auth-surface .register-page-wrapper .register-right-panel {
    width: 100% !important;
    max-width: 100%;
    padding: clamp(28px, 5vw, 52px);
}

body.auth-surface .register-page-wrapper .register-form-wrapper {
    width: 100%;
    max-width: none;
}

body.auth-surface .register-page-wrapper .form-title {
    margin: 0 0 7px;
    color: var(--auth-ink);
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 900;
}

body.auth-surface .register-page-wrapper .form-subtitle {
    margin: 0 0 26px;
    color: var(--auth-muted);
    font-size: 0.84rem;
}

body.auth-surface .register-page-wrapper .form-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

body.auth-surface .register-page-wrapper .stepper-item {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    text-align: center;
}

body.auth-surface .register-page-wrapper .stepper-number {
    display: grid;
    margin: 0 auto;
    place-items: center;
    border-radius: 50%;
}

body.auth-surface .register-page-wrapper .stepper-line {
    position: relative;
    top: 21px;
    flex: 1;
    margin: 0 7px;
}

body.auth-surface .register-page-wrapper .register-form-modern {
    margin-top: 0;
}

body.auth-surface .register-page-wrapper .form-label-modern {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: #33496f;
    font-size: 0.82rem;
    font-weight: 800;
}

body.auth-surface .register-page-wrapper .form-input-modern {
    width: 100%;
    min-height: 49px;
    padding: 10px 13px;
    border: 1px solid #d6e4f6;
    border-radius: 13px;
    color: var(--auth-ink);
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(20, 33, 61, 0.025);
}

body.auth-surface .register-page-wrapper .form-input-modern:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: 0;
}

body.auth-surface .register-page-wrapper .form-input-modern.input-invalid,
body.auth-surface .register-page-wrapper .select2-selection.input-invalid {
    border-color: #c65b56 !important;
    background: #fff9f8 !important;
}

body.auth-surface .register-page-wrapper .form-input-modern.input-valid {
    border-color: #38bdf8;
}

body.auth-surface .register-page-wrapper .select2-container {
    width: 100% !important;
}

body.auth-surface .register-page-wrapper .select2-selection__rendered {
    display: flex !important;
    align-items: center;
    min-height: 47px;
    padding-inline: 13px !important;
    color: var(--auth-ink) !important;
}

body.auth-surface .register-page-wrapper .select2-selection--multiple .select2-selection__rendered {
    flex-wrap: wrap;
    gap: 5px;
    padding-block: 5px !important;
}

body.auth-surface .register-page-wrapper .form-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
}

body.auth-surface .register-page-wrapper .captcha-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
}

body.auth-surface .register-page-wrapper .captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 12px;
}

body.auth-surface .register-page-wrapper .captcha-refresh-icon-btn {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #d6e4f6;
    border-radius: 11px;
    color: var(--auth-primary);
    background: var(--auth-white);
}

body.auth-surface .register-page-wrapper .step-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.auth-surface .register-page-wrapper .step-content.active {
    display: block !important;
}

body.auth-surface .register-page-wrapper .step-content.step-error {
    animation: authStepError 320ms ease;
}

body.auth-surface .register-page-wrapper .step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 136px;
    min-height: 48px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-weight: 800;
    transition: 160ms ease;
}

body.auth-surface .register-page-wrapper .step-btn-prev {
    border-color: #d6e4f6;
    color: #45597d;
    background: #f8fbff;
}

body.auth-surface .register-page-wrapper .step-btn-next,
body.auth-surface .register-page-wrapper .step-btn-submit {
    color: #fff;
    background: var(--auth-primary);
    box-shadow: 0 9px 20px rgba(37, 99, 235, 0.16);
}

body.auth-surface .register-page-wrapper .step-btn:hover {
    transform: translateY(-1px);
}

body.auth-surface .register-page-wrapper .button-loader {
    display: none;
}

body.auth-surface .register-page-wrapper .loading .button-content {
    display: none;
}

body.auth-surface .register-page-wrapper .loading .button-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.auth-surface .register-page-wrapper .spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin 700ms linear infinite;
}

body.auth-surface .register-page-wrapper .register-login-link {
    margin-top: 25px;
    padding-top: 21px;
    border-top: 1px solid #deebf8;
    text-align: center;
}

body.auth-surface .register-page-wrapper .login-link-text {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

@keyframes authSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes authStepError {
    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Compact recovery and verification screens */
body.auth-surface .auth-page-wrapper .auth-container {
    width: min(590px, calc(100% - 32px));
    max-width: 590px;
}

body.auth-surface .auth-page-wrapper .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
}

body.auth-surface .auth-page-wrapper .card::before {
    display: block;
    width: 100%;
    height: 6px;
    content: "";
    background: var(--auth-primary);
}

body.auth-surface .auth-page-wrapper .round-64,
body.auth-surface .auth-page-wrapper .round-80,
body.auth-surface .login-form-wrapper .round-48 {
    width: 66px;
    height: 66px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 20px !important;
    color: var(--auth-primary) !important;
    background: rgba(37, 99, 235, 0.07) !important;
}

body.auth-surface #code-inputs {
    direction: ltr;
}

body.auth-surface #code-inputs .code-input {
    width: clamp(40px, 11vw, 52px) !important;
    height: clamp(48px, 12vw, 58px) !important;
    padding: 4px;
    border-radius: 13px !important;
    font-size: 1.25rem !important;
}

body.auth-surface .login-progress-container {
    overflow: hidden;
    height: 5px !important;
    border-radius: 99px;
    background: #deebf8;
}

body.auth-surface .login-progress-bar {
    background: linear-gradient(90deg, var(--auth-accent), var(--auth-primary)) !important;
}

body.auth-surface a:focus-visible,
body.auth-surface button:focus-visible,
body.auth-surface input:focus-visible,
body.auth-surface select:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    .auth-global-nav__inner {
        grid-template-columns: auto 1fr;
    }

    .auth-route-switcher {
        justify-self: end;
    }

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

    body.auth-surface .login-left-panel,
    body.auth-surface .register-left-panel {
        display: none;
    }

    body.auth-surface .login-card-modern > .row,
    body.auth-surface .register-card-modern > .row {
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    .auth-global-nav {
        top: 10px;
        padding: 0 10px;
    }

    .auth-global-nav__inner {
        display: flex;
        min-height: 58px;
        padding: 7px;
        border-radius: 17px;
    }

    .auth-brand-copy,
    .auth-route-link:not(.is-active) {
        display: none;
    }

    .auth-route-switcher {
        margin-right: auto;
        padding: 4px;
    }

    .auth-route-link.is-active {
        display: inline-flex;
        align-items: center;
        min-height: 38px;
    }

    body.auth-surface .login-page-wrapper,
    body.auth-surface .register-page-wrapper,
    body.auth-surface .auth-page-wrapper,
    body.auth-surface #main > .min-vh-100 {
        padding-top: 88px !important;
        padding-bottom: 22px !important;
    }

    body.auth-surface .login-container,
    body.auth-surface .register-container,
    body.auth-surface #main > .min-vh-100 > .container {
        width: min(100% - 20px, 100%);
    }

    body.auth-surface .login-card-modern,
    body.auth-surface .register-card-modern,
    body.auth-surface #main > .min-vh-100 .card,
    body.auth-surface .auth-page-wrapper .card {
        border-radius: 21px !important;
    }

    body.auth-surface .login-right-panel,
    body.auth-surface .register-right-panel,
    body.auth-surface #main > .min-vh-100 .card-body {
        padding: 26px 19px !important;
    }

    body.auth-surface .register-form-header {
        margin: -26px -19px 24px !important;
        padding: 28px 16px 23px;
    }

    body.auth-surface .form-stepper {
        gap: 2px;
        overflow-x: auto;
        padding: 5px 2px 9px;
        scrollbar-width: none;
    }

    body.auth-surface .stepper-number {
        width: 34px;
        height: 34px;
        border-width: 3px;
    }

    body.auth-surface .stepper-label {
        max-width: 68px;
        font-size: 0.65rem;
        line-height: 1.4;
    }

    body.auth-surface .stepper-line {
        min-width: 20px;
    }

    body.auth-surface .form-section-modern {
        padding: 18px 14px;
        border-radius: 17px;
    }

    body.auth-surface .form-options {
        align-items: flex-start !important;
        flex-direction: column;
    }

    body.auth-surface .forgot-links {
        text-align: right !important;
    }

    body.auth-surface .register-buttons {
        display: grid !important;
        grid-template-columns: 1fr;
    }

    body.auth-surface .step-navigation .btn {
        min-width: 0;
        flex: 1;
    }

    body.auth-surface .corrector-page-intro {
        margin-bottom: 18px;
    }

    body.auth-surface .register-page-wrapper .register-right-panel {
        padding: 26px 19px !important;
    }

    body.auth-surface .register-page-wrapper .captcha-row {
        grid-template-columns: 1fr;
    }

    body.auth-surface .register-page-wrapper .step-btn {
        min-width: 0;
        flex: 1;
        padding-inline: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.auth-surface *,
    body.auth-surface *::before,
    body.auth-surface *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
