/* Shared sign-in / registration presentation; authentication stays unchanged. */
body.auth-redesign {
  --muted: #91a1b9;
  --border: rgba(153, 179, 221, .14);
  min-height: 100svh;
  padding: 40px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  background: radial-gradient(ellipse at 10% 20%, #11264a 0, transparent 48%), #060c19;
}
.auth-redesign .bg-grid { opacity: .4; background-size: 32px 32px; }
.auth-redesign .blob { opacity: .08; }
.auth-redesign .auth-page {
  width: 100%; max-width: 1120px; min-height: 0; padding: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.auth-redesign .auth-showcase { order: -1; display: flex; min-width: 0; padding: 24px 0; gap: 36px; }
.auth-redesign .auth-brand { width: fit-content; gap: 16px; }
.auth-redesign .auth-brand-mark {
  flex: 0 0 68px; width: 68px; height: 68px; padding: 6px;
  border-radius: 20px; overflow: hidden; border: 1px solid rgba(155,184,234,.2);
  background: rgba(17,30,52,.8); box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.auth-redesign .auth-brand-mark img {
  display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  object-fit: contain; object-position: center; border-radius: 12px;
}
.auth-redesign .auth-brand strong { font-size: 1.35rem; letter-spacing: .02em; }
.auth-redesign .auth-brand small { font-size: .8rem; }
.auth-redesign .auth-tagline h1 {
  font-size: clamp(2.2rem, 4vw, 3.3rem); line-height: 1.22; letter-spacing: -.025em;
  margin-bottom: 20px; background: linear-gradient(120deg, #fff 25%, #92bbff);
  background-clip: text; -webkit-background-clip: text;
}
.auth-redesign .auth-tagline p { max-width: 430px; font-size: .95rem; line-height: 1.85; }
.auth-redesign .auth-features, .auth-redesign .steps { display: grid; gap: 12px; }
.auth-redesign .auth-feature, .auth-redesign .step {
  padding: 14px 16px; border: 1px solid rgba(148,178,219,.09);
  border-radius: 15px; background: rgba(17,32,54,.38); gap: 14px;
}
.auth-redesign .step:last-child { border-bottom: 1px solid rgba(148,178,219,.09); }
.auth-redesign .auth-feature-icon, .auth-redesign .step-num { border-radius: 12px; box-shadow: none; }
.auth-redesign .auth-card {
  min-width: 0; padding: 32px; border-radius: 26px;
  border: 1px solid rgba(155,184,234,.16);
  background: linear-gradient(155deg, rgba(25,40,66,.94), rgba(12,22,39,.97));
  box-shadow: 0 24px 80px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; margin-bottom: 28px; background: #091426; border: 1px solid rgba(148,178,219,.1); border-radius: 13px; }
.auth-tabs a { min-height: 42px; display: grid; place-items: center; padding: 8px; border-radius: 9px; text-decoration: none; color: #9fb0c9; font-size: .86rem; }
.auth-tabs a[aria-current="page"] { background: #233b60; color: #ecf4ff; box-shadow: inset 0 1px rgba(255,255,255,.07); }
.auth-redesign .auth-card-header { display: grid; grid-template-columns: 46px minmax(0,1fr); align-items: center; gap: 10px 12px; text-align: left; margin-bottom: 24px; }
.auth-redesign .auth-card-header .icon-wrap { grid-column: 1; grid-row: 1; width: 46px; height: 46px; margin: 0; border-radius: 14px; background: rgba(90,146,255,.12); color: #9fc7ff; border-color: rgba(122,174,255,.18); }
.auth-redesign .auth-card-header h2 { grid-column: 2; grid-row: 1; font-size: clamp(1.15rem, 4.5vw, 1.55rem); margin: 0; line-height: 1.4; }
.auth-redesign .auth-card-header p { grid-column: 1 / -1; font-size: .85rem; line-height: 1.6; }
.auth-redesign .auth-form { gap: 16px; }
.auth-redesign .form-input { height: 50px; font-size: 16px; border-radius: 12px; background: #0a1527; border-color: rgba(155,184,234,.17); }
.auth-redesign input[type="password"], .auth-redesign #password { padding-right: 52px; }
.auth-redesign .form-input:focus { border-color: #78acfa; box-shadow: 0 0 0 3px rgba(89,148,244,.13); }
.auth-redesign .form-input.is-invalid { border-color: #f87171; }
.auth-redesign .toggle-pw { width: 44px; height: 44px; right: 4px; }
.auth-redesign .form-hint { line-height: 1.6; }
.auth-redesign .submit-btn { min-height: 50px; border-radius: 12px; background: linear-gradient(110deg,#367eed,#6369ec); box-shadow: 0 6px 20px rgba(50,108,227,.18); }
.auth-redesign .google-oauth-btn { border-radius: 12px; border-color: rgba(155,184,234,.2); background: rgba(13,26,45,.7); }
.auth-redesign .back-home { min-height: 44px; margin-top: 0; align-self: center; }
.auth-redesign a:focus-visible, .auth-redesign button:focus-visible { outline: 2px solid #94bfff; outline-offset: 4px; }
.auth-redesign .auth-message { overflow-wrap: anywhere; }
@media (max-width: 820px) {
  body.auth-redesign { display: block; padding: 24px 16px max(24px, env(safe-area-inset-bottom)); }
  .auth-redesign .auth-page { grid-template-columns: minmax(0,1fr); max-width: 480px; gap: 22px; }
  .auth-redesign .auth-showcase { display: flex; padding: 0 4px; gap: 0; }
  .auth-redesign .auth-showcase .auth-tagline, .auth-redesign .auth-features, .auth-redesign .steps { display: none; }
  .auth-redesign .auth-brand-mark { flex-basis: 54px; width: 54px; height: 54px; border-radius: 16px; padding: 5px; }
  .auth-redesign .auth-brand strong { font-size: 1.15rem; }
  .auth-redesign .auth-card { padding: 24px 20px; border-radius: 22px; }
  .auth-tabs { margin-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-redesign *, .auth-redesign *::before, .auth-redesign *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
