body.auth-shell {
    background: #07111f;
}

body.auth-shell .bg-animation::before {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    animation: none;
    background:
        linear-gradient(155deg, rgba(5, 13, 27, 0.98), rgba(8, 22, 43, 0.94) 52%, rgba(7, 16, 31, 0.98)),
        radial-gradient(circle at 12% 20%, rgba(53, 132, 247, 0.3), transparent 34%),
        radial-gradient(circle at 82% 16%, rgba(39, 196, 255, 0.13), transparent 30%),
        radial-gradient(circle at 88% 82%, rgba(53, 132, 247, 0.2), transparent 34%);
}

[data-theme="light"] body.auth-shell {
    background: #edf5ff;
}

[data-theme="light"] body.auth-shell .bg-animation::before {
    background:
        linear-gradient(155deg, rgba(246, 250, 255, 0.98), rgba(232, 242, 255, 0.96) 52%, rgba(244, 249, 255, 0.98)),
        radial-gradient(circle at 12% 20%, rgba(53, 132, 247, 0.2), transparent 34%),
        radial-gradient(circle at 82% 16%, rgba(39, 196, 255, 0.12), transparent 30%),
        radial-gradient(circle at 88% 82%, rgba(53, 132, 247, 0.14), transparent 34%);
}

body.auth-shell .header {
    background: rgba(7, 16, 29, 0.58) !important;
    border-bottom-color: rgba(112, 176, 255, 0.18);
    -webkit-backdrop-filter: blur(24px) saturate(135%) !important;
    backdrop-filter: blur(24px) saturate(135%) !important;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] body.auth-shell .header {
    background: rgba(255, 255, 255, 0.58) !important;
    border-bottom-color: rgba(53, 132, 247, 0.15);
    box-shadow: 0 10px 32px rgba(50, 93, 153, 0.08);
}

body.auth-shell .footer {
    height: auto;
    min-height: 0;
    max-height: none;
    margin-top: 0;
    background: rgba(7, 16, 29, 0.36);
    border-top-color: rgba(112, 176, 255, 0.16);
    -webkit-backdrop-filter: blur(22px) saturate(125%);
    backdrop-filter: blur(22px) saturate(125%);
}

body.auth-shell .footer-bottom {
    border-top-color: rgba(112, 176, 255, 0.14);
    background: transparent;
}

[data-theme="light"] body.auth-shell .footer {
    background: rgba(255, 255, 255, 0.42);
    border-top-color: rgba(53, 132, 247, 0.13);
}

[data-theme="light"] body.auth-shell .footer-bottom {
    border-top-color: rgba(53, 132, 247, 0.12);
}

body.auth-shell .auth-page {
    background: transparent;
}

body.auth-shell .auth-orb {
    display: none;
}

.auth-page {
    --auth-blue: #3584f7;
    --auth-blue-strong: #176de2;
    --auth-cyan: #27c4ff;
    --auth-mint: #42d5b1;
    --auth-danger: #ff6b78;
    --auth-warning: #ffb44c;
    --auth-panel: rgba(13, 22, 38, 0.92);
    --auth-panel-soft: rgba(19, 31, 51, 0.76);
    --auth-border: rgba(112, 176, 255, 0.2);
    --auth-border-strong: rgba(90, 165, 255, 0.38);
    --auth-text: #f6f9ff;
    --auth-text-soft: #bdcbe0;
    --auth-text-muted: #8192ad;
    position: relative;
    isolation: isolate;
    min-height: 760px;
    padding: 64px 24px 72px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(10, 16, 28, 0.4), rgba(7, 13, 24, 0.78)),
        radial-gradient(circle at 14% 18%, rgba(53, 132, 247, 0.16), transparent 32%),
        radial-gradient(circle at 88% 76%, rgba(39, 196, 255, 0.1), transparent 28%);
}

[data-theme="light"] .auth-page {
    --auth-panel: rgba(255, 255, 255, 0.94);
    --auth-panel-soft: rgba(244, 249, 255, 0.88);
    --auth-border: rgba(37, 108, 199, 0.16);
    --auth-border-strong: rgba(37, 108, 199, 0.32);
    --auth-text: #13223a;
    --auth-text-soft: #465a76;
    --auth-text-muted: #70809a;
    background:
        linear-gradient(180deg, rgba(247, 250, 255, 0.8), rgba(235, 243, 255, 0.92)),
        radial-gradient(circle at 14% 18%, rgba(53, 132, 247, 0.13), transparent 32%),
        radial-gradient(circle at 88% 76%, rgba(39, 196, 255, 0.12), transparent 28%);
}

.auth-orb {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(4px);
    pointer-events: none;
    opacity: 0.72;
}

.auth-orb--one {
    width: 380px;
    height: 380px;
    top: -180px;
    left: -120px;
    background: radial-gradient(circle, rgba(53, 132, 247, 0.28), rgba(53, 132, 247, 0));
}

.auth-orb--two {
    width: 460px;
    height: 460px;
    right: -190px;
    bottom: -230px;
    background: radial-gradient(circle, rgba(39, 196, 255, 0.2), rgba(39, 196, 255, 0));
}

.auth-layout {
    width: min(1160px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(430px, 1.06fr);
    gap: 28px;
    align-items: stretch;
}

.auth-layout--wide {
    width: min(1280px, 100%);
    grid-template-columns: minmax(340px, 0.78fr) minmax(580px, 1.22fr);
}

.auth-layout--wide .auth-intro h1 {
    font-size: clamp(28px, 2.55vw, 38px);
}

.auth-intro,
.auth-panel {
    border: 1px solid var(--auth-border);
    border-radius: 30px;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
}

[data-theme="light"] .auth-intro,
[data-theme="light"] .auth-panel {
    box-shadow: 0 28px 70px rgba(42, 83, 140, 0.14);
}

.auth-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 670px;
    padding: 38px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(155deg, rgba(43, 116, 224, 0.95), rgba(16, 59, 126, 0.94) 58%, rgba(10, 32, 68, 0.98)),
        #153d80;
}

.auth-intro::before,
.auth-intro::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.auth-intro::before {
    width: 430px;
    height: 430px;
    top: -250px;
    right: -180px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.04), 0 0 0 110px rgba(255, 255, 255, 0.025);
}

.auth-intro::after {
    width: 280px;
    height: 280px;
    left: -170px;
    bottom: -150px;
    background: rgba(39, 196, 255, 0.16);
    filter: blur(2px);
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    align-self: flex-start;
    color: #fff;
    text-decoration: none;
}

.auth-brand > span:last-child {
    min-width: max-content;
}

.auth-brand__icon {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 13px;
    background: #fff;
    box-shadow:
        0 4px 15px rgba(0, 149, 255, 0.4),
        0 0 26px rgba(88, 181, 255, 0.34),
        0 12px 28px rgba(0, 31, 84, 0.24);
}

.auth-brand__icon::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -9px;
    border-radius: 20px;
    background: radial-gradient(circle, rgba(128, 204, 255, 0.42), rgba(64, 157, 255, 0.16) 48%, transparent 72%);
    filter: blur(7px);
    pointer-events: none;
}

.auth-brand__icon img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 13px;
    object-fit: cover;
    box-shadow: none;
}

.auth-brand strong,
.auth-brand small {
    display: block;
}

.auth-brand strong {
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.auth-brand small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    letter-spacing: 0.08em;
    white-space: nowrap;
    word-break: keep-all;
}

.auth-intro__content {
    position: relative;
    z-index: 1;
    margin: auto 0;
    padding: 44px 0 34px;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 600;
}

.auth-intro h1 {
    margin: 24px 0 16px;
    color: #fff;
    font-size: clamp(30px, 2.75vw, 42px);
    line-height: 1.17;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.auth-intro__content > p {
    max-width: 500px;
    margin: 0;
    color: rgba(235, 244, 255, 0.74);
    font-size: 15px;
    line-height: 1.8;
}

.auth-feature-list {
    display: grid;
    gap: 12px;
    margin-top: 34px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(12px);
}

.auth-feature > span {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
}

.auth-feature strong,
.auth-feature small {
    display: block;
}

.auth-feature strong {
    color: #fff;
    font-size: 14px;
}

.auth-feature small {
    margin-top: 4px;
    color: rgba(235, 244, 255, 0.65);
    font-size: 12px;
    line-height: 1.5;
}

.auth-panel {
    position: relative;
    padding: 36px 40px 30px;
    color: var(--auth-text);
    background: var(--auth-panel);
    backdrop-filter: blur(24px);
}

.auth-mobile-brand {
    display: none;
}

.auth-switcher {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    border: 1px solid var(--auth-border);
    border-radius: 14px;
    background: rgba(9, 17, 31, 0.56);
}

[data-theme="light"] .auth-switcher {
    background: rgba(225, 236, 250, 0.66);
}

.auth-switcher a {
    position: relative;
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--auth-text-muted);
    font-size: 13px;
    font-weight: 650;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-switcher a:hover {
    color: var(--auth-text);
}

.auth-switcher a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--auth-blue), var(--auth-blue-strong));
    box-shadow: 0 8px 24px rgba(53, 132, 247, 0.28);
}

.auth-panel__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 30px 0 26px;
}

.auth-panel__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(78, 158, 255, 0.3);
    border-radius: 17px;
    color: #82c7ff;
    background: linear-gradient(145deg, rgba(53, 132, 247, 0.22), rgba(39, 196, 255, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-size: 20px;
}

[data-theme="light"] .auth-panel__icon {
    color: #176de2;
    background: linear-gradient(145deg, rgba(53, 132, 247, 0.14), rgba(39, 196, 255, 0.08));
}

.auth-kicker {
    margin: 0 0 4px !important;
    color: var(--auth-blue);
    font-size: 10px !important;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.auth-panel__header h2 {
    margin: 0;
    color: var(--auth-text);
    font-size: 25px;
    line-height: 1.3;
}

.auth-panel__header p:last-child {
    margin: 6px 0 0;
    color: var(--auth-text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 20px;
    padding: 13px 15px;
    border-radius: 13px;
    font-size: 13px;
    line-height: 1.55;
}

.auth-alert i {
    margin-top: 3px;
}

.auth-alert--error {
    border: 1px solid rgba(255, 107, 120, 0.28);
    color: #ff9aa4;
    background: rgba(255, 107, 120, 0.1);
}

.auth-alert--success {
    border: 1px solid rgba(66, 213, 177, 0.28);
    color: #70e7c9;
    background: rgba(66, 213, 177, 0.1);
}

[data-theme="light"] .auth-alert--error {
    color: #c73c50;
}

[data-theme="light"] .auth-alert--success {
    color: #157f66;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 16px;
}

.auth-field--full {
    grid-column: 1 / -1;
}

.auth-field label,
.auth-label-row label {
    display: block;
    margin-bottom: 8px;
    color: var(--auth-text-soft);
    font-size: 12px;
    font-weight: 700;
}

.auth-field label > span {
    margin-left: 5px;
    color: var(--auth-text-muted);
    font-size: 10px;
    font-weight: 500;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-label-row a {
    margin-bottom: 8px;
    color: #6fb3ff;
    font-size: 12px;
    text-decoration: none;
}

[data-theme="light"] .auth-label-row a {
    color: #176de2;
}

.auth-control {
    position: relative;
}

.auth-control > i:first-child {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.auth-control input {
    width: 100%;
    height: 50px;
    /* Keep the leading icon and optional trailing action outside the text area.
       theme-modern-v2.css has a global !important input padding rule. */
    padding: 0 46px 0 43px !important;
    border: 1px solid var(--auth-border);
    border-radius: 13px;
    outline: none;
    color: var(--auth-text);
    background: rgba(7, 14, 26, 0.58);
    font-family: inherit;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

[data-theme="light"] .auth-control input {
    background: rgba(247, 250, 255, 0.96);
}

.auth-control input::placeholder {
    color: var(--auth-text-muted);
    opacity: 0.72;
}

.auth-control:focus-within > i:first-child {
    color: #6fb3ff;
}

.auth-control input:focus {
    border-color: rgba(81, 160, 255, 0.8);
    background: rgba(9, 18, 34, 0.82);
    box-shadow: 0 0 0 4px rgba(53, 132, 247, 0.13);
}

[data-theme="light"] .auth-control input:focus {
    background: #fff;
}

.auth-control.is-valid input {
    border-color: rgba(66, 213, 177, 0.58);
}

.auth-control.is-invalid input {
    border-color: rgba(255, 107, 120, 0.72);
}

.auth-control.is-checking input {
    border-color: rgba(255, 180, 76, 0.56);
}

.auth-input-status {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    font-size: 13px;
}

.auth-control.is-valid .auth-input-status {
    color: var(--auth-mint);
}

.auth-control.is-invalid .auth-input-status {
    color: var(--auth-danger);
}

.auth-control.is-checking .auth-input-status {
    color: var(--auth-warning);
}

.auth-field-message {
    display: block;
    min-height: 16px;
    margin-top: 6px;
    color: var(--auth-text-muted);
    font-size: 10px;
    line-height: 1.5;
}

.auth-field-message.is-error {
    color: #ff8d98;
}

.auth-field-message.is-success {
    color: var(--auth-mint);
}

[data-theme="light"] .auth-field-message.is-error {
    color: #c73c50;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    color: var(--auth-text-muted);
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    color: var(--auth-text);
    background: rgba(112, 176, 255, 0.1);
}

.auth-password-meter {
    height: 3px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(112, 176, 255, 0.12);
}

.auth-password-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition: width 0.25s ease, background 0.25s ease;
}

.auth-password-meter[data-strength="1"] span {
    width: 28%;
    background: var(--auth-danger);
}

.auth-password-meter[data-strength="2"] span {
    width: 58%;
    background: var(--auth-warning);
}

.auth-password-meter[data-strength="3"] span {
    width: 100%;
    background: var(--auth-mint);
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--auth-text-soft);
    font-size: 12px;
    line-height: 1.55;
    cursor: pointer;
}

.auth-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.auth-check > span {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 19px;
    height: 19px;
    margin-top: 1px;
    border: 1px solid var(--auth-border-strong);
    border-radius: 6px;
    color: transparent;
    background: rgba(7, 14, 26, 0.5);
    font-size: 10px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

[data-theme="light"] .auth-check > span {
    background: #fff;
}

.auth-check input:checked + span {
    border-color: var(--auth-blue);
    color: #fff;
    background: var(--auth-blue);
}

.auth-check input:focus-visible + span {
    box-shadow: 0 0 0 4px rgba(53, 132, 247, 0.16);
}

.auth-check em {
    color: inherit;
    font-style: normal;
}

.auth-check a {
    color: #71b8ff;
    text-decoration: none;
}

[data-theme="light"] .auth-check a {
    color: #176de2;
}

.auth-check--terms {
    padding-top: 2px;
}

.auth-submit,
.auth-secondary-button,
.auth-code-button,
.auth-file-button {
    font-family: inherit;
}

.auth-submit {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 18px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--auth-blue), var(--auth-blue-strong));
    box-shadow: 0 13px 30px rgba(53, 132, 247, 0.25);
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 17px 36px rgba(53, 132, 247, 0.34);
    filter: brightness(1.05);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit:disabled {
    cursor: not-allowed;
    opacity: 0.56;
    transform: none;
    box-shadow: none;
}

.auth-submit.is-loading,
.auth-secondary-button.is-loading,
.auth-code-button.is-loading {
    pointer-events: none;
    opacity: 0.72;
}

.auth-submit i {
    transition: transform 0.2s ease;
}

.auth-submit:hover i {
    transform: translateX(2px);
}

.auth-secondary-button,
.auth-code-button {
    display: flex;
    width: 100%;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    color: var(--auth-text-soft);
    background: rgba(112, 176, 255, 0.06);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.auth-secondary-button:hover,
.auth-code-button:hover {
    border-color: var(--auth-border-strong);
    color: var(--auth-text);
    background: rgba(112, 176, 255, 0.1);
}

.auth-secondary-button:disabled,
.auth-code-button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.auth-email-verification-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.auth-register-code-button {
    width: auto;
    min-width: 142px;
    min-height: 50px;
    white-space: nowrap;
}

.auth-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--auth-text-muted);
    font-size: 12px;
    text-decoration: none;
}

.auth-secondary-action:hover {
    color: var(--auth-text);
}

.auth-inline-note,
.auth-code-destination {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid rgba(53, 132, 247, 0.2);
    border-radius: 12px;
    color: var(--auth-text-muted);
    background: rgba(53, 132, 247, 0.07);
    font-size: 11px;
    line-height: 1.55;
}

.auth-inline-note i,
.auth-code-destination i {
    margin-top: 2px;
    color: #6fb3ff;
}

.auth-code-destination strong {
    color: var(--auth-text-soft);
}

.auth-avatar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px;
    border: 1px dashed var(--auth-border-strong);
    border-radius: 15px;
    background: rgba(53, 132, 247, 0.045);
}

.auth-avatar {
    position: relative;
    display: grid !important;
    flex: 0 0 auto;
    place-items: center;
    width: 70px;
    height: 70px;
    margin: 0 !important;
    overflow: hidden;
    border: 2px solid rgba(111, 179, 255, 0.45);
    border-radius: 22px;
    color: #acd5ff !important;
    background: linear-gradient(145deg, rgba(53, 132, 247, 0.25), rgba(39, 196, 255, 0.08));
    cursor: pointer;
}

.auth-avatar > i {
    font-size: 25px;
}

.auth-avatar > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-avatar > span {
    position: absolute;
    right: 4px;
    bottom: 4px;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 8px;
    color: #fff;
    background: var(--auth-blue);
    font-size: 10px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

.auth-avatar-row strong {
    display: block;
    color: var(--auth-text-soft);
    font-size: 12px;
}

.auth-avatar-row p {
    margin: 4px 0 10px;
    color: var(--auth-text-muted);
    font-size: 10px;
    line-height: 1.5;
}

.auth-file-button {
    display: inline-flex !important;
    min-height: 32px;
    align-items: center;
    gap: 7px;
    margin: 0 !important;
    padding: 7px 10px;
    border: 1px solid var(--auth-border);
    border-radius: 9px;
    color: #78bcff !important;
    background: rgba(53, 132, 247, 0.08);
    font-size: 10px !important;
    cursor: pointer;
}

.auth-account-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid var(--auth-border);
    border-radius: 14px;
    background: rgba(53, 132, 247, 0.06);
}

.auth-account-summary > span {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #75baff;
    background: rgba(53, 132, 247, 0.12);
}

.auth-account-summary div {
    flex: 1;
    min-width: 0;
}

.auth-account-summary small,
.auth-account-summary strong {
    display: block;
}

.auth-account-summary small {
    color: var(--auth-text-muted);
    font-size: 9px;
}

.auth-account-summary strong {
    margin-top: 2px;
    overflow: hidden;
    color: var(--auth-text-soft);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-account-summary a {
    color: #71b8ff;
    font-size: 10px;
    text-decoration: none;
}

.auth-recovery-list {
    display: grid;
    gap: 16px;
}

.auth-recovery-list--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.auth-recovery-card {
    display: grid;
    gap: 15px;
    padding: 18px;
    border: 1px solid var(--auth-border);
    border-radius: 17px;
    background: rgba(8, 16, 29, 0.38);
}

[data-theme="light"] .auth-recovery-card {
    background: rgba(247, 250, 255, 0.72);
}

.auth-recovery-card__title {
    display: flex;
    align-items: center;
    gap: 11px;
}

.auth-recovery-card__title > span {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #78bcff;
    background: rgba(53, 132, 247, 0.12);
}

.auth-recovery-card__title strong,
.auth-recovery-card__title small {
    display: block;
}

.auth-recovery-card__title strong {
    color: var(--auth-text-soft);
    font-size: 12px;
}

.auth-recovery-card__title small {
    margin-top: 3px;
    color: var(--auth-text-muted);
    font-size: 9px;
}

.auth-question {
    padding: 11px 12px;
    border: 1px solid rgba(53, 132, 247, 0.14);
    border-radius: 11px;
    background: rgba(53, 132, 247, 0.055);
}

.auth-question small,
.auth-question strong {
    display: block;
}

.auth-question small {
    color: var(--auth-text-muted);
    font-size: 9px;
}

.auth-question strong {
    margin-top: 4px;
    color: var(--auth-text-soft);
    font-size: 11px;
    line-height: 1.5;
}

.auth-code-send-form {
    display: block;
}

.auth-panel__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--auth-border);
    color: var(--auth-text-muted);
    font-size: 10px;
}

.auth-panel__footer a {
    color: var(--auth-text-muted);
    text-decoration: none;
}

.auth-panel__footer > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.auth-panel__footer span a {
    color: #71b8ff;
}

.auth-panel__footer a:hover {
    color: var(--auth-text);
}

.auth-modal[hidden] {
    display: none !important;
}

.auth-modal {
    position: fixed;
    z-index: 10050;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 7, 16, 0.76);
    backdrop-filter: blur(10px);
}

.auth-modal__card {
    position: relative;
    width: min(430px, 100%);
    padding: 30px;
    border: 1px solid rgba(255, 180, 76, 0.26);
    border-radius: 22px;
    color: var(--auth-text);
    background: rgba(14, 23, 39, 0.98);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
    text-align: center;
}

[data-theme="light"] .auth-modal__card {
    background: rgba(255, 255, 255, 0.99);
}

.auth-modal__icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 17px;
    border-radius: 19px;
    color: #ffd28c;
    background: rgba(255, 180, 76, 0.14);
    font-size: 23px;
}

.auth-modal h2 {
    margin: 0;
    color: var(--auth-text);
    font-size: 20px;
}

.auth-modal p {
    margin: 12px 0 24px;
    color: var(--auth-text-muted);
    font-size: 12px;
    line-height: 1.75;
}

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

body.auth-modal-open {
    overflow: hidden;
}

@media (max-width: 1080px) {
    .auth-layout,
    .auth-layout--wide {
        grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
    }

    .auth-intro {
        padding: 32px;
    }

    .auth-intro h1,
    .auth-layout--wide .auth-intro h1 {
        font-size: clamp(23px, 2.6vw, 30px);
    }

    .auth-panel {
        padding: 32px;
    }

    .auth-recovery-list--two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .auth-page {
        padding: 34px 18px 52px;
    }

    body.auth-shell .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.auth-shell .footer-brand {
        grid-column: 1 / -1;
    }

    body.auth-shell .footer-links {
        min-width: 0;
    }

    .auth-layout,
    .auth-layout--wide {
        width: min(720px, 100%);
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .auth-intro {
        min-height: auto;
        padding: 28px;
        border-radius: 24px;
    }

    .auth-intro__content {
        padding: 32px 0 24px;
    }

    .auth-intro h1,
    .auth-layout--wide .auth-intro h1 {
        max-width: 600px;
        margin-top: 18px;
        font-size: 34px;
    }

    .auth-feature-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
        margin-top: 25px;
    }

    .auth-feature {
        align-items: flex-start;
        padding: 12px;
    }

    .auth-feature > span {
        width: 34px;
        height: 34px;
    }

    .auth-feature small {
        display: none;
    }

    .auth-panel {
        border-radius: 24px;
    }
}

@media (max-width: 640px) {
    .auth-page {
        min-height: 0;
        padding: 16px 10px 34px;
        background:
            linear-gradient(180deg, rgba(10, 16, 28, 0.3), rgba(7, 13, 24, 0.72)),
            radial-gradient(circle at 50% 0%, rgba(53, 132, 247, 0.18), transparent 36%);
    }

    [data-theme="light"] .auth-page {
        background:
            linear-gradient(180deg, rgba(247, 250, 255, 0.88), rgba(235, 243, 255, 0.96)),
            radial-gradient(circle at 50% 0%, rgba(53, 132, 247, 0.14), transparent 36%);
    }

    .auth-intro {
        display: none;
    }

    .auth-panel {
        padding: 20px 16px 18px;
        border-radius: 20px;
        box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
    }

    .auth-mobile-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 16px;
        color: var(--auth-text-muted);
        font-size: 10px;
    }

    .auth-mobile-brand a {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        color: var(--auth-text);
        font-size: 13px;
        font-weight: 750;
        text-decoration: none;
    }

    .auth-mobile-brand__icon {
        position: relative;
        isolation: isolate;
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 4px 15px rgba(0, 149, 255, 0.4), 0 0 18px rgba(88, 181, 255, 0.3);
    }

    .auth-mobile-brand__icon::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset: -6px;
        border-radius: 15px;
        background: radial-gradient(circle, rgba(128, 204, 255, 0.34), transparent 72%);
        filter: blur(5px);
        pointer-events: none;
    }

    [data-theme="light"] .auth-mobile-brand__icon {
        background: #fff;
        box-shadow: 0 4px 15px rgba(0, 149, 255, 0.36), 0 0 18px rgba(53, 132, 247, 0.2);
    }

    .auth-mobile-brand__icon img {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100%;
        border-radius: 10px;
        object-fit: cover;
    }

    .auth-switcher {
        gap: 3px;
        padding: 4px;
        border-radius: 12px;
    }

    .auth-switcher a {
        min-height: 39px;
        padding: 8px 5px;
        border-radius: 9px;
        font-size: 11px;
    }

    .auth-panel__header {
        gap: 12px;
        margin: 22px 0 20px;
    }

    .auth-panel__icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        font-size: 17px;
    }

    .auth-panel__header h2 {
        font-size: 21px;
    }

    .auth-panel__header p:last-child {
        font-size: 11px;
    }

    .auth-form,
    .auth-recovery-card {
        gap: 15px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .auth-field--full {
        grid-column: auto;
    }

    .auth-control input {
        height: 48px;
        font-size: 12px;
    }

    .auth-email-verification-row {
        grid-template-columns: 1fr;
    }

    .auth-register-code-button {
        width: 100%;
        min-height: 45px;
    }

    .auth-avatar-row {
        align-items: flex-start;
    }

    .auth-avatar {
        width: 62px;
        height: 62px;
        border-radius: 19px;
    }

    .auth-panel__footer {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 24px;
    }

    .auth-recovery-card {
        padding: 15px;
    }

    .auth-modal__card {
        padding: 24px 18px;
        border-radius: 19px;
    }

    .auth-modal__actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .auth-panel {
        padding-right: 13px;
        padding-left: 13px;
    }

    .auth-switcher a {
        font-size: 10px;
    }

    .auth-avatar-row {
        flex-direction: column;
    }
}

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