.auth-page-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -12%, rgba(109, 82, 177, .2), transparent 33rem),
        radial-gradient(circle at 50% 112%, rgba(211, 173, 98, .1), transparent 30rem),
        #191a1e;
}

.auth-layout,
.register-stage {
    min-height: 100vh;
}

.register-stage {
    display: grid;
    place-items: center;
    padding: 2.5rem 1rem;
}

.register-shell {
    width: min(100%, 450px);
    text-align: center;
}

.auth-brand {
    display: inline-block;
    width: 164px;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: filter .18s ease, transform .18s ease;
}

.auth-brand:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.auth-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.register-card {
    padding: 2rem;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    background: #222429;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .32);
    text-align: left;
}

.register-heading {
    margin-bottom: 1.55rem;
    text-align: center;
}

.register-heading h1 {
    margin: 0 0 .4rem;
    color: var(--site-gold-light);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.025em;
}

.register-heading p {
    margin: 0;
    color: var(--site-muted);
    font-size: .94rem;
}

.register-form {
    display: grid;
    gap: 1rem;
}

.field-group {
    display: grid;
    gap: .42rem;
}

.field-group label {
    color: var(--site-muted-strong);
    font-size: .88rem;
    font-weight: 700;
}

.field-group label span {
    color: #e28a72;
}

.register-form .form-control {
    min-height: 48px;
    padding: .7rem .85rem;
    border: 1px solid #353840;
    border-radius: 6px;
    color: var(--site-text);
    background: #282a30;
    font-size: .94rem;
    box-shadow: none;
}

.register-form .form-control::placeholder {
    color: #858b96;
}

.register-form .form-control:hover {
    border-color: #4a4d56;
}

.register-form .form-control:focus {
    border-color: rgba(211, 173, 98, .78);
    background: #2b2d33;
    box-shadow: 0 0 0 3px rgba(211, 173, 98, .1);
}

.register-form .form-control.is-invalid {
    border-color: #df6672;
    background-image: none;
}

.password-wrap {
    position: relative;
}

.password-wrap .form-control {
    padding-right: 2.9rem;
}

.password-wrap button {
    position: absolute;
    top: 50%;
    right: .45rem;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 6px;
    color: var(--site-muted);
    background: transparent;
    transform: translateY(-50%);
}

.password-wrap button:hover {
    color: var(--site-text);
    background: rgba(255, 255, 255, .05);
}

.password-hint,
.field-error,
.terms-copy,
.captcha-note {
    font-size: .78rem;
    line-height: 1.55;
}

.password-hint {
    display: flex;
    align-items: flex-start;
    gap: .35rem;
    margin: 0;
    color: #949ba4;
}

.password-hint.is-valid {
    color: #72d7a7;
}

.field-error {
    color: #f08b94;
}

.field-error:empty {
    display: none;
}

.terms-copy {
    margin: -.05rem 0 0;
    color: #949ba4;
}

.terms-copy a,
.captcha-note a {
    color: var(--site-gold-light);
    text-underline-offset: 2px;
}

.captcha-note {
    margin: -.15rem 0 0;
    color: #949ba4;
}

.register-submit {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: .1rem;
    border-radius: 6px;
}

.register-submit:disabled {
    cursor: not-allowed;
    opacity: .52;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 1.45rem 0 1rem;
    color: #949ba4;
    font-size: .79rem;
    font-weight: 650;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    background: var(--site-border);
    content: "";
}

.social-register {
    display: flex;
    justify-content: center;
    gap: .5rem;
}

.social-button {
    display: grid;
    width: 44px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: filter .16s ease, transform .16s ease;
}

.social-button:not(:disabled):hover {
    color: #fff;
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.social-button:disabled {
    cursor: not-allowed;
    filter: saturate(.35);
    opacity: .48;
}

.social-facebook { background: #4d8ac7; }
.social-google { background: #dc6c5b; }
.social-discord { background: #6675d8; }

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: 1rem;
    padding: .72rem .8rem;
    border: 1px solid var(--site-border-strong);
    border-radius: 7px;
    color: var(--site-muted-strong);
    background: var(--site-surface-raised);
    font-size: .81rem;
    line-height: 1.5;
}

.auth-alert[hidden] {
    display: none;
}

.auth-alert-error {
    border-color: rgba(239, 102, 114, .34);
    color: #ffc2c7;
    background: rgba(239, 102, 114, .08);
}

.auth-alert-config {
    margin: 0;
    border-color: rgba(211, 173, 98, .28);
    color: #e8d4a6;
    background: rgba(211, 173, 98, .07);
}

.registration-success {
    padding: 1rem .25rem .25rem;
    text-align: center;
}

.registration-success > span {
    display: grid;
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    place-items: center;
    border-radius: 50%;
    color: #163c2d;
    background: #72d7a7;
    font-size: 1.35rem;
}

.registration-success h2 {
    font-size: 1.35rem;
    font-weight: 800;
}

.registration-success p {
    margin: .55rem 0 1.2rem;
    color: var(--site-muted);
    font-size: .86rem;
    line-height: 1.6;
}

.signin-note {
    margin: 1.25rem 0 .75rem;
    color: var(--site-muted-strong);
    font-size: .86rem;
}

.signin-note a {
    color: var(--site-gold-light);
    font-weight: 700;
    text-underline-offset: 3px;
}

.signin-note a:hover {
    color: var(--site-text);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: var(--site-muted);
    font-size: .82rem;
    text-decoration: none;
}

.back-link:hover {
    color: var(--site-text);
}

.auth-footer {
    margin-top: 1.35rem;
    color: #858b96;
    font-size: .76rem;
}

.registration-trap {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.grecaptcha-badge {
    visibility: hidden;
}

@media (max-width: 575.98px) {
    .register-stage {
        place-items: start center;
        padding: 1.5rem .8rem;
    }

    .register-card {
        padding: 1.4rem;
    }
}
