.auth-body {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow-x: hidden;
}

.auth-header {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
}

.auth-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.language-pill {
    border: 0;
    background: transparent;
    color: var(--text);
    font-weight: 750;
    font-size: 1rem;
}

.icon-theme-button {
    width: 52px;
    height: 52px;
    padding: 0;
    display: grid;
    place-items: center;
}

.icon-theme-button span {
    min-width: 0;
    width: 34px;
    height: 34px;
    font-size: 0;
}

.icon-theme-button .theme-sun::before,
.theme-toggle .theme-sun::before {
    content: "";
    width: 16px;
    height: 16px;
    display: block;
    border-radius: 50%;
    background: #ffbf2f;
    box-shadow: 0 0 0 6px rgba(255, 191, 47, 0.16);
}

.icon-theme-button .theme-moon::before,
.theme-toggle .theme-moon::before {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    border-radius: 50%;
    background: #6d49ff;
    box-shadow: inset -6px -2px 0 #cdd9ff;
}

.auth-shell {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
    align-items: center;
    gap: clamp(40px, 8vw, 118px);
    padding: 46px 0 68px;
}

.auth-brand-panel {
    text-align: center;
}

.auth-brand-panel h1 {
    margin: 22px 0 10px;
    font-size: clamp(4rem, 7.4vw, 7.4rem);
    line-height: 0.94;
    letter-spacing: 0;
}

.auth-brand-panel p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.2rem, 1.8vw, 1.75rem);
    line-height: 1.35;
}

.rainbow-text {
    display: inline-block;
    margin-top: 28px;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: transparent;
    background: var(--rainbow);
    -webkit-background-clip: text;
    background-clip: text;
}

.login-card {
    width: min(560px, 100%);
    justify-self: center;
    padding: clamp(28px, 4.4vw, 56px);
}

.login-card h2 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.login-card > p {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 1.08rem;
}

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

.auth-form .field {
    position: relative;
}

.auth-form .field span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.auth-form .field input {
    padding-left: 18px;
    font-size: 1rem;
}

.field-password input {
    padding-right: 74px;
}

.field-password button {
    position: absolute;
    right: 12px;
    top: 12px;
    border: 0;
    border-radius: 12px;
    min-height: 30px;
    padding: 0 10px;
    color: var(--muted);
    background: transparent;
    font-size: 0.84rem;
    font-weight: 800;
}

.forgot-link {
    justify-self: end;
    color: var(--purple);
    font-weight: 760;
    margin: 2px 0 16px;
}

.divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    color: var(--muted);
    margin: 28px 0 20px;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    background: var(--line);
}

.social-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.social-row button {
    min-height: 56px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.45);
    color: var(--text);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

[data-theme="dark"] .social-row button {
    background: rgba(255, 255, 255, 0.06);
}

.google-dot {
    color: #4285f4;
    font-size: 1.45rem;
}

.apple-dot,
.discord-dot {
    font-size: 0;
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
}

.apple-dot::before {
    content: "";
    width: 18px;
    height: 22px;
    background: currentColor;
    border-radius: 50% 50% 46% 46%;
}

.discord-dot::before {
    content: "";
    width: 24px;
    height: 18px;
    border-radius: 9px;
    background: #5865f2;
}

.switch-auth {
    margin: 26px 0 0;
    text-align: center;
    color: var(--muted);
}

.switch-auth a {
    color: var(--purple);
    font-weight: 800;
}

.auth-footer {
    min-height: 68px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 max(24px, calc((100vw - 1440px) / 2 + 24px));
    color: var(--muted);
}

.auth-footer nav {
    display: flex;
    gap: 28px;
}
