:root {
    --auth-panel: #2d2d37;
    --auth-panel-input: rgba(0, 0, 0, 0.18);
    --auth-border: #393946;
    --auth-border-strong: rgba(255, 255, 255, 0.10);
    --auth-text: #e7ebf3;
    --auth-text-muted: #9aa0ad;
    --auth-text-dim: #6e7280;
    --auth-accent: #48c388;
    --auth-accent-hover: #5cd29a;
    --auth-radius: 14px;
    --auth-tracking: 0.18em;
}

.auth-page {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 18px;
    margin: 22px 0 36px;
    align-items: stretch;
}

@media (max-width: 991.98px) {
    .auth-page {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.auth-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 40px;
    background: var(--auth-panel);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    display: flex;
    flex-direction: column;
    min-height: 480px;
    isolation: isolate;
}

.auth-hero__number {
    position: absolute;
    z-index: 0;
    bottom: -56px;
    right: -10px;
    font-family: 'Open Sans', system-ui, sans-serif;
    font-size: 280px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.06em;
}

.auth-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 22px;
}

.auth-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: var(--auth-tracking);
    text-transform: uppercase;
    color: var(--auth-text-muted);
    width: fit-content;
}
.auth-hero__eyebrow-num {
    color: var(--auth-accent);
    font-variant-numeric: tabular-nums;
}
.auth-hero__eyebrow-rule {
    width: 28px;
    height: 1px;
    background: var(--auth-border-strong);
    flex-shrink: 0;
}

.auth-hero__title {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.08;
    color: var(--auth-text);
    letter-spacing: -0.6px;
}
.auth-hero__title em {
    font-style: normal;
    color: var(--auth-accent);
}

.auth-hero__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--auth-text-muted);
    max-width: 420px;
}

.auth-hero__meta {
    margin-top: auto;
    padding-top: 26px;
    border-top: 1px solid var(--auth-border);
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--auth-text-dim);
}
.auth-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.auth-hero__meta-num {
    color: var(--auth-text);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    text-transform: none;
}
.auth-hero__meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--auth-accent);
}
.auth-hero__server-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 6px;
}
.auth-hero__server-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--auth-accent);
    box-shadow: 0 0 0 2px rgba(72, 195, 136, 0.10);
}
.auth-hero__server-dot--off {
    background: var(--auth-text-dim);
    opacity: 0.4;
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .auth-hero {
        min-height: 0;
        padding: 28px 22px;
        gap: 16px;
    }
    .auth-hero__title  { font-size: 24px; }
    .auth-hero__desc   { font-size: 13px; }
    .auth-hero__number { font-size: 200px; bottom: -42px; right: -8px; }
    .auth-hero__meta   { padding-top: 20px; gap: 14px; font-size: 10.5px; }
    .auth-hero__meta-num { font-size: 12px; }
}

.auth-form {
    position: relative;
    padding: 44px 40px 36px;
    background: var(--auth-panel);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
}

.auth-form__head {
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}
.auth-form__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: var(--auth-tracking);
    text-transform: uppercase;
    color: var(--auth-text-dim);
    margin-bottom: 12px;
}
.auth-form__eyebrow-rule {
    width: 22px;
    height: 1px;
    background: var(--auth-border-strong);
}
.auth-form__title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: var(--auth-text);
    letter-spacing: -0.4px;
    line-height: 1.2;
}
.auth-form__sub {
    margin: 0;
    font-size: 13px;
    color: var(--auth-text-muted);
    line-height: 1.55;
}

.auth-form__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.auth-field__wrap {
    position: relative;
}
.auth-field__status {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease, color 0.18s ease;
}
.auth-field__status[data-status="checking"],
.auth-field__status[data-status="success"],
.auth-field__status[data-status="error"] {
    opacity: 1;
}
.auth-field__status[data-status="success"]  { color: var(--auth-accent); }
.auth-field__status[data-status="error"]    { color: #e57878; }
.auth-field__status[data-status="checking"] { color: var(--auth-text-dim); }
.auth-field--has-status .auth-field__input { padding-right: 40px; }
.auth-field--invalid .auth-field__input { border-color: rgba(229, 120, 120, 0.50); }
.auth-field--valid   .auth-field__input { border-color: rgba(72, 195, 136, 0.45); }

.auth-field__hint {
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--auth-text-dim);
    min-height: 0;
    transition: color 0.18s ease;
}
.auth-field__hint:empty { margin-top: 0; }
.auth-field__hint[data-state="success"] { color: var(--auth-accent); }
.auth-field__hint[data-state="error"]   { color: #e57878; }

.auth-strength {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.auth-strength__bars {
    display: flex;
    gap: 4px;
    flex: 1;
}
.auth-strength__bars span {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--auth-border-strong);
    transition: background 0.22s ease;
}
.auth-strength[data-strength="1"] .auth-strength__bars span:nth-child(1) { background: #e57878; }
.auth-strength[data-strength="2"] .auth-strength__bars span:nth-child(-n+2) { background: #e5b878; }
.auth-strength[data-strength="3"] .auth-strength__bars span { background: var(--auth-accent); }
.auth-strength__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--auth-text-dim);
    min-width: 70px;
    text-align: right;
    transition: color 0.18s ease;
}
.auth-strength[data-strength="1"] .auth-strength__label { color: #e57878; }
.auth-strength[data-strength="2"] .auth-strength__label { color: #e5b878; }
.auth-strength[data-strength="3"] .auth-strength__label { color: var(--auth-accent); }

.auth-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-top-color: var(--auth-text);
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
}
.auth-submit .auth-spinner {
    border-color: rgba(0, 0, 0, 0.16);
    border-top-color: rgba(0, 0, 0, 0.6);
}
@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

.auth-recovery-sent {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: rgba(72, 195, 136, 0.06);
    border: 1px solid rgba(72, 195, 136, 0.22);
    border-radius: 10px;
    text-align: left;
}
.auth-recovery-sent__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(72, 195, 136, 0.12);
    color: var(--auth-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.auth-recovery-sent__body {
    flex: 1;
    min-width: 0;
}
.auth-recovery-sent__msg {
    font-size: 13px;
    color: var(--auth-text);
    line-height: 1.55;
}
.auth-recovery-sent__email {
    color: var(--auth-accent);
    font-weight: 700;
    letter-spacing: 0.01em;
}
.auth-recovery-sent__support {
    display: inline-block;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--auth-text-dim);
    text-decoration: none;
    transition: color 0.18s ease;
}
.auth-recovery-sent__support:hover {
    color: var(--auth-accent);
    text-decoration: none;
}
.auth-field__label {
    position: static !important;
    top: auto !important;
    transform: none !important;
    transition: color 0.18s ease !important;
    font-size: 10.5px !important;
    font-weight: 700;
    letter-spacing: var(--auth-tracking);
    text-transform: uppercase;
    color: var(--auth-text-dim);
    cursor: pointer;
    user-select: none;
    margin: 0;
    line-height: 1.2;
}
.auth-field__input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: var(--auth-panel-input);
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    color: var(--auth-text);
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease;
    box-sizing: border-box;
}
.auth-field__input::placeholder {
    color: var(--auth-text-dim);
    opacity: 0.7;
}
.auth-field__input:hover {
    border-color: rgba(255, 255, 255, 0.13);
}
.auth-field__input:focus {
    border-color: var(--auth-accent);
    background: rgba(0, 0, 0, 0.24);
}
.auth-field__input:focus ~ .auth-field__label,
.auth-field:focus-within .auth-field__label {
    color: var(--auth-accent);
}

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

.auth-helper {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
}
.auth-helper__link {
    font-size: 12px;
    color: var(--auth-text-dim);
    text-decoration: none;
    transition: color 0.18s ease;
    letter-spacing: 0.01em;
}
.auth-helper__link:hover {
    color: var(--auth-accent);
    text-decoration: none;
}

.auth-submit {
    width: 100%;
    height: 48px;
    margin-top: 6px;
    padding: 0 20px;
    background: var(--auth-accent);
    border: 0;
    border-radius: 10px;
    color: #0a1f15;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
}
.auth-submit__label { display: inline-block; }
.auth-submit__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.12);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s ease;
    font-size: 18px;
}
.auth-submit:hover {
    background: var(--auth-accent-hover);
    color: #0a1f15;
}
.auth-submit:hover .auth-submit__arrow {
    transform: translateX(4px);
    background: rgba(0, 0, 0, 0.18);
}
.auth-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.auth-submit.is-loading,
.auth-submit.is-loading:disabled {
    opacity: 1;
    cursor: wait;
}
.auth-submit.is-loading .auth-submit__arrow {
    transform: none !important;
    background: rgba(0, 0, 0, 0.10);
}
.auth-submit.is-cooldown,
.auth-submit.is-cooldown:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    background: var(--auth-panel-input);
    color: var(--auth-text-muted);
    text-shadow: none;
}
.auth-submit.is-cooldown .auth-submit__arrow {
    background: transparent;
}

.auth-recaptcha {
    margin: 4px 0 2px;
    transform-origin: 0 0;
}
.auth-recaptcha .g-recaptcha {
    display: flex;
    justify-content: center;
}

.auth-consent {
    position: static !important;
    top: auto !important;
    transform: none !important;
    transition: none !important;
    font-size: 12.5px !important;
    margin: 4px 0 2px;
    padding: 0;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
    user-select: none;
    line-height: 1.55;
}
.auth-consent__cb {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    margin: 0;
}
.auth-consent__box {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1px solid var(--auth-border-strong);
    border-radius: 5px;
    background: var(--auth-panel-input);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 14px;
    line-height: 1;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.auth-consent__cb:checked + .auth-consent__box {
    background: var(--auth-accent);
    border-color: var(--auth-accent);
    color: #0a1f15;
}
.auth-consent__cb:focus-visible + .auth-consent__box {
    outline: 2px solid rgba(72, 195, 136, 0.35);
    outline-offset: 2px;
}
.auth-consent:hover .auth-consent__box {
    border-color: rgba(255, 255, 255, 0.20);
}
.auth-consent__text {
    color: var(--auth-text-muted);
}
.auth-consent__text a {
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.18s ease;
}
.auth-consent__text a:hover {
    color: var(--auth-accent-hover);
    text-decoration: underline;
}
.auth-consent--error .auth-consent__box {
    border-color: #e57878;
    background: rgba(229, 120, 120, 0.10);
    animation: auth-consent-shake 0.32s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
.auth-consent--error .auth-consent__text {
    color: #e57878;
}
@keyframes auth-consent-shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-3px); }
    40%, 60% { transform: translateX(3px); }
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 14px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: var(--auth-tracking);
    text-transform: uppercase;
    color: var(--auth-text-dim);
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

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

.auth-social__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    height: 50px;
    padding: 0 16px;
    background: transparent;
    border: 1px solid var(--auth-border-strong);
    border-radius: 10px;
    color: var(--auth-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
    text-align: left;
}
.auth-social__btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.18s ease;
}
.auth-social__btn-icon i { font-size: 18px; line-height: 1; }
.auth-social__btn-label {
    flex: 1;
    color: var(--auth-text);
    letter-spacing: 0.01em;
}
.auth-social__btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-text-dim);
    font-size: 16px;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease;
}
.auth-social__btn:hover {
    text-decoration: none;
    color: var(--auth-text);
    background: rgba(255, 255, 255, 0.025);
}
.auth-social__btn:hover .auth-social__btn-arrow {
    transform: translateX(4px);
    color: var(--auth-text);
}

.auth-social__btn--vk .auth-social__btn-icon {
    background: rgba(70, 128, 194, 0.10);
    color: #6FA8DA;
}
.auth-social__btn--vk .auth-social__btn-icon i { color: #6FA8DA; }
.auth-social__btn--vk:hover {
    border-color: rgba(70, 128, 194, 0.35);
}
.auth-social__btn--vk:hover .auth-social__btn-icon {
    background: rgba(70, 128, 194, 0.16);
}

.auth-social__btn--steam .auth-social__btn-icon {
    background: rgba(102, 192, 244, 0.08);
    color: #66c0f4;
}
.auth-social__btn--steam .auth-social__btn-icon i { color: #66c0f4; }
.auth-social__btn--steam:hover {
    border-color: rgba(102, 192, 244, 0.35);
}
.auth-social__btn--steam:hover .auth-social__btn-icon {
    background: rgba(102, 192, 244, 0.14);
}

.auth-foot {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--auth-border);
    text-align: center;
    font-size: 13px;
    color: var(--auth-text-muted);
    letter-spacing: 0.01em;
}
.auth-foot a {
    color: var(--auth-accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease;
}
.auth-foot a:hover {
    color: var(--auth-accent-hover);
    text-decoration: none;
}

.auth-result {
    min-height: 0;
    margin-top: 12px;
    padding: 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    color: var(--auth-text-muted);
    transition: padding 0.2s ease, margin 0.2s ease;
}
.auth-result:not(:empty),
.auth-result--filled {
    margin-top: 16px;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 10px;
    border: 1px solid var(--auth-border);
}
.auth-result--filled { margin-top: 0; }
.auth-result .text-success,
.auth-result p.text-success { color: var(--auth-accent); margin: 0; }
.auth-result .text-danger,
.auth-result p.text-danger  { color: #e57878; margin: 0; }

.auth-privacy {
    margin-top: 14px;
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--auth-text-dim);
    text-align: center;
}

@media (max-width: 991.98px) {
    .auth-form { padding: 30px 24px 24px; }
    .auth-form__title { font-size: 20px; }
}
@media (max-width: 480px) {
    .auth-form { padding: 24px 20px; }
    .auth-form__title { font-size: 18px; }
    .auth-form__form { gap: 14px; }
}
