.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 60px; position: relative; z-index: 1;
}
.login-card {
  width: 100%; max-width: 440px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow), 0 0 60px rgba(37,99,235,0.08);
}
.login-card__header { text-align: center; margin-bottom: 32px; }
.login-card__header h1 {
  font-family: 'WeissenhofGrotesk', 'Inter', sans-serif; font-size: 26px; font-weight: 700; margin-bottom: 8px;
}
.login-card__header p { color: var(--text-muted); font-size: 14px; }

.auth-tabs {
  display: flex; gap: 2px; background: rgba(255,255,255,0.04);
  border-radius: var(--radius); padding: 4px; margin-bottom: 28px;
  position: relative;
}
.auth-tab-slider {
  position: absolute;
  top: 4px; left: 4px;
  width: calc(50% - 5px);
  height: calc(100% - 8px);
  background: var(--blue);
  border-radius: 8px;
  box-shadow: var(--glow);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 0;
}
.auth-tab-slider.right { transform: translateX(calc(100% + 6px)); }
.auth-tab {
  flex: 1; padding: 9px; background: none; border: none; border-radius: 8px;
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: color var(--t); font-family: inherit;
  position: relative; z-index: 1;
}
.auth-tab.active { color: white; }

/* Form switcher — morphing container */
.form-switcher {
  position: relative;
  overflow: hidden;
  transition: height 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base form state */
.auth-form { width: 100%; }

/* Visible / in-flow */
.auth-form--active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Completely hidden */
.auth-form--hidden { display: none; }

/* Pre-enter: rendered off-screen below so we can measure height, but invisible */
.auth-form--pre-enter {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* Animate in */
.auth-form--enter {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animate out — positioned absolute so it doesn't push layout */
.auth-form--exit {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: block;
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  transition: opacity 0.22s ease,
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.auth-footer a { color: var(--blue-light); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

.input-group { position: relative; }
.input-group .input { padding-right: 44px; }
.input-group__toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 16px; transition: color var(--t);
}
.input-group__toggle:hover { color: var(--text-muted); }

.oauth-buttons { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.btn--oauth {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all 0.2s ease; cursor: pointer;
  border: 1px solid var(--border);
}
.btn--discord {
  background: rgba(88,101,242,0.12); color: #7289da;
  border-color: rgba(88,101,242,0.3);
}
.btn--discord:hover {
  background: rgba(88,101,242,0.22); border-color: rgba(88,101,242,0.6);
  color: #9ba8ff; transform: translateY(-1px);
}
.btn--google {
  background: rgba(255,255,255,0.05); color: var(--text-muted);
  border-color: var(--border);
}
.btn--google:hover {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25);
  color: white; transform: translateY(-1px);
}

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; color: var(--text-dim); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Username picker step */
#usernameStep { text-align: center; }
#usernameStep .form-group { text-align: left; }
.username-step-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--blue-dim); border: 2px solid var(--border-blue);
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: var(--blue-light);
  overflow: hidden; flex-shrink: 0;
}
.username-step-icon img { width: 88px; height: 88px; object-fit: cover; display: block; border-radius: 50%; }
.username-step-sub { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 24px; line-height: 1.5; }
.input-hint { font-size: 12px; color: var(--text-dim); margin-top: 5px; }
