.auth-page { color: #eef0f4; }
.auth-stage { flex: 1; display: grid; align-items: center; padding: 160px 32px 72px; }
.auth-layout { width: min(100%, 1040px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.auth-eyebrow { display: block; color: #b5bac4; font-size: 11px; font-weight: 700; line-height: 1.6; letter-spacing: .16em; text-transform: uppercase; }
.auth-brand h2 { max-width: 490px; margin: 18px 0 0; font-size: clamp(32px, 4vw, 50px); font-weight: 700; line-height: 1.14; letter-spacing: -.045em; text-wrap: balance; }
.auth-art { position: relative; display: grid; place-items: center; min-height: 350px; margin-top: 28px; isolation: isolate; }
.auth-orbit { position: absolute; width: 300px; height: 300px; max-width: 100%; border: 1px solid #ffffff10; border-radius: 50%; background: radial-gradient(circle, #c8d0df0d, transparent 70%); z-index: -1; }
.auth-orbit::after { content: ''; position: absolute; inset: 28px; border: 1px solid #ffffff08; border-radius: inherit; }
.auth-preview { width: 230px; padding: 24px; display: flex; align-items: center; flex-direction: column; gap: 13px; border: 1px solid #535761; border-radius: 26px; background: linear-gradient(145deg, #35383e, #202227); box-shadow: 0 28px 65px #0005, inset 0 1px 0 #ffffff12; transform: rotate(-6deg); }
.auth-preview > img { object-fit: contain; width: 64px; height: 64px; }
.auth-preview > strong { font-family: var(--font-display); font-size: 17px; letter-spacing: .14em; }
.auth-preview-line { width: 80px; height: 4px; border-radius: 4px; background: #6c7079; margin-bottom: 5px; }
.auth-preview-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid #ffffff16; border-radius: 12px; background: #ffffff06; }
.auth-preview-link i { width: 18px; height: 18px; border-radius: 6px; background: #b8becb; }
.auth-preview-link > span { height: 4px; flex: 1; border-radius: 4px; background: #777d88; }
.auth-preview-link svg { flex-shrink: 0; color: #b8becb; }
.auth-art-caption { position: absolute; bottom: 5px; inset-inline-end: 12px; padding: 10px 16px; background: #292c32; border: 1px solid #4a4f58; border-radius: 999px; color: #d9dde5; font: 11px var(--font-mono); box-shadow: 0 8px 24px #0004; }
.auth-card { min-width: 0; padding: clamp(26px, 3.5vw, 44px); border: 1px solid #454951; border-radius: 28px; background: linear-gradient(145deg, #2b2e34f5, #202227fa); box-shadow: 0 24px 70px #0004, inset 0 1px 0 #ffffff0a; animation: auth-enter .4s ease-out both; }
.auth-heading { text-align: start; }
.auth-mark { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 28px; border: 1px solid #555a64; border-radius: 18px; background: linear-gradient(145deg, #40444c, #2c2f35); }
.auth-mark img { object-fit: contain; }
.auth-heading h1 { margin: 10px 0 28px; font: 700 32px/1.2 var(--font-main); letter-spacing: -.035em; color: #f4f5f7; }
.auth-card .login-divider { margin: 0 0 20px; }
.auth-card .login-divider span { color: #bfc4ce; font: 12px/1.5 var(--font-main); letter-spacing: 0; text-transform: none; }
.auth-card .login-divider::before, .auth-card .login-divider::after { background: #ffffff18; }
.auth-card :is(.btn-discord, .btn-google) { min-height: 54px; padding: 14px 20px; font: 600 13px/1.5 var(--font-main); text-transform: none; letter-spacing: 0; box-shadow: inset 0 1px 0 #ffffff30; transform: none; }
.auth-card .btn-discord { background: #e0e3e9; color: #202329 !important; border: 1px solid #e0e3e9; }
.auth-card .btn-discord:hover { background: #f4f5f7; border-color: #f4f5f7; box-shadow: 0 4px 18px #0002; transform: none; }
.auth-card .btn-discord.is-pending .btn-discord-spinner { border-color: #20232940; border-top-color: #202329; }
.auth-card .btn-google { margin-top: 12px; }
.auth-card :is(.btn-discord, .btn-google):focus-visible { outline: 2px solid #e4e8ef; outline-offset: 5px; }
.auth-card .login-note { display: flex; align-items: flex-start; gap: 10px; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid #ffffff12; font: 12px/1.8 var(--font-main); color: #b4bac5; text-align: start; }
.auth-card .login-note svg { width: 18px; height: 18px; }
.auth-card .error-msg { margin: 0 0 22px; font: 13px/1.6 var(--font-main); text-align: start; }
@keyframes auth-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .auth-stage { padding: 130px 20px 48px; }
  .auth-layout { max-width: 460px; grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .auth-brand { text-align: center; }
  .auth-brand h2 { font-size: 32px; margin-top: 12px; }
  .auth-art { display: none; }
  .auth-card { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-card { animation: none; }
  .auth-card :is(.btn-discord, .btn-google) { transition: none; }
}
