.auth-page { min-height: 100dvh; background: #302e29; color: #f5f4ef; margin: 0; position: relative; overflow-x: hidden; }
.auth-page [hidden] { display: none !important; }
.auth-page::before { content: ""; position: fixed; z-index: -1; left: -10%; bottom: -15%; width: 120%; height: 57%; transform: perspective(650px) rotateX(50deg) rotate(-3deg); transform-origin: center; opacity: .2; background: conic-gradient(#6a655c 25%,transparent 0 50%,#6a655c 0 75%,transparent 0) 0 0/50% 70%; pointer-events: none; }
.auth-brand { justify-content: center; font-size: 35px; margin: 70px auto 30px; }
.auth-brand img { width: 33px; height: 44px; }
.auth-shell { width: min(400px,calc(100% - 30px)); margin: 0 auto 50px; }
.login-card { padding: 40px 40px 28px; background: #262520; border-radius: 11px 11px 0 0; }
.auth-field { position: relative; display: flex; align-items: center; gap: 8px; border: 1px solid #55534b; min-height: 42px; background: #3b3933; border-radius: 5px; padding: 0 10px; margin-bottom: 12px; color: #a8a59c; }
.auth-field input { width: 100%; min-width: 0; height: 40px; background: transparent; color: #f6f3ed; border: 0; outline: 0; font: inherit; font-size: 14px; }
.auth-field:focus-within { border-color: #a3a096; }
.password-toggle { padding: 0; border: 0; background: none; color: #b3afa5; font-size: 18px; cursor: pointer; }
.auth-options { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #c6c1b6; gap: 6px; margin: 12px 0 18px; }
.auth-options a { text-decoration: underline; }.auth-options input { accent-color: #9a968c; vertical-align: middle; }
.auth-submit { width: 100%; min-height: 64px; font-size: 22px; cursor: pointer; }
.auth-divider { display: flex; gap: 20px; align-items: center; font-size: 13px; color: #918c82; margin: 25px 0; }
.auth-divider::before,.auth-divider::after { content: ""; flex: 1; height: 1px; background: #444038; }
.auth-provider { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 54px; width: 100%; margin-top: 8px; font-size: 17px; cursor: pointer; }
.auth-provider.provider-pending { font-size: 14px; color: #b7b2a7; }
.auth-signup-link { display: block; background: #211f1b; border-radius: 0 0 11px 11px; text-align: center; padding: 24px 15px; font-size: 13px; font-weight: 700; line-height: 1.5; }
.auth-error { color: #ffac9b; line-height: 1.5; font-size: 13px; margin: 14px 0; }
.account-note { margin-top: 15px; font-size: 12px; color: #a7a196; line-height: 1.6; text-align: center; }
.signup-page::before { display: none; }
.signup-page .auth-brand { margin-top: 56px; margin-bottom: 20px; }
.signup-page h1 { text-align: center; font-size: 32px; line-height: 1.1; margin: 0 0 30px; letter-spacing: -.035em; }
.signup-methods { padding-top: 220px; }
.signup-step .auth-field { min-height: 42px; }.signup-step .auth-field input { font-size: 14px; }
.signup-step .account-note { text-align: left; font-size: 12px; margin: 4px 0 22px; }
.auth-top-link { position: absolute; right: max(20px,calc((100vw - 920px)/2)); top: 72px; color: #c6c2b9; font-size: 14px; }
.signup-back { position: absolute; left: max(20px,calc((100vw - 880px)/2)); top: 70px; font-size: 26px; background: none; border: none; color: #b5b0a6; cursor: pointer; }
.auth-provider em { margin-left: 6px; font-size: 10px; color: #aba496; font-style: normal; }
.account-profile { padding: 25px; text-align: center; background: #272620; border-radius: 10px; }
.account-profile h1 { font-size: 28px; margin: 8px 0 15px; }
.account-profile .profile-avatar { font-size: 65px; color: #b2cf8d; }
.account-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin: 20px 0; }
.account-stats strong { display: block; font-size: 22px; }.account-stats small { font-size: 12px; color: #bbb4a8; }
.account-profile .btn { min-height: 46px; display: flex; align-items: center; justify-content: center; margin-top: 9px; }
.profile-games { margin-top: 20px; display: grid; gap: 8px; }.profile-games a { padding: 13px; border-radius: 6px; background: #27251f; font-size: 13px; line-height: 1.5; }
@media(max-width:500px) {
  .auth-brand { margin-top: 35px; font-size: 31px; margin-bottom: 24px; }
  .login-card { padding: 28px 24px; }
  .signup-methods { padding-top: 135px; }
  .signup-page h1 { font-size: 28px; }.signup-page .auth-brand { margin-top: 42px; }
  .auth-top-link { top: 20px; right: 15px; }.signup-back { top: 45px; left: 16px; }
}
