/* ===================================================================== */
/* Full-screen auth experience                                            */
/*  - Login: edge-to-edge split screen (brand hero + form), no card box. */
/*  - Onboarding: polished "creator handle" field.                        */
/* Loaded after styles.css so it wins the cascade.                        */
/* ===================================================================== */

/* ------------------------------ LOGIN ------------------------------- */
body.login-page .auth-view { padding: 0; min-height: 100vh; min-height: 100dvh; overflow: hidden; }
body.login-page .login-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; position: relative; z-index: 1; }

/* left: brand hero */
.login-hero {
  align-items: flex-start; background:
    radial-gradient(700px 520px at 20% 10%, rgba(91,141,239,.38), transparent 62%),
    radial-gradient(640px 560px at 90% 95%, rgba(224,82,156,.28), transparent 60%),
    linear-gradient(160deg, #0d1330 0%, #120d33 100%);
  border-right: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; padding: clamp(32px, 5vw, 64px); position: relative;
}
.login-hero::before { /* faint grid texture */
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px; content: ""; inset: 0; -webkit-mask-image: radial-gradient(circle at 30% 40%, #000, transparent 75%); mask-image: radial-gradient(circle at 30% 40%, #000, transparent 75%);
  pointer-events: none; position: absolute;
}
.login-hero > * { position: relative; }
.login-hero-logo { align-items: center; display: inline-flex; gap: 14px; }
.login-hero-logo img { filter: drop-shadow(0 6px 18px rgba(84,108,242,.6)); height: 56px; width: 56px; }
.login-hero-logo .kc-wordmark { font-size: clamp(44px, 4.6vw, 62px); }
.login-hero-copy { max-width: 520px; }
.login-hero-copy h1 { color: #fff; font-size: clamp(38px, 4.6vw, 62px); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; margin: 0 0 20px; }
.login-hero-copy h1 em { background: linear-gradient(95deg, #7fb0ff, #b58bff 55%, #ff7ab8); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.login-hero-copy > p { color: rgba(236,240,255,.72); font-size: clamp(15px, 1.35vw, 18px); line-height: 1.6; margin: 0 0 30px; max-width: 460px; }
.login-hero-points { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.login-hero-points li { align-items: center; color: rgba(248,250,255,.92); display: flex; font-size: 15px; font-weight: 600; gap: 14px; }
.login-hero-points li span { align-items: center; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; display: inline-flex; height: 38px; justify-content: center; width: 38px; }
.login-hero-points svg { fill: none; height: 19px; stroke: #b9c9ff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; width: 19px; }
.login-hero-foot { color: rgba(236,240,255,.4); font-size: 12px; margin: 0; }

/* right: form panel — fills the full height, no box */
.login-panel { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: clamp(20px, 3vw, 36px) clamp(24px, 6vw, 96px) clamp(24px, 4vh, 40px); }
.login-panel-top { align-items: center; display: flex; justify-content: flex-end; padding-top: env(safe-area-inset-top, 0px); }
.login-mobile-brand { display: none !important; }
.login-panel .auth-card-wrap { align-self: center; flex: 1; margin: 0 auto; max-width: 440px; width: 100%; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }

/* strip the old glass card — the screen itself is the surface */
body.login-page .auth-view .auth-card { animation: none; background: transparent; border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; padding: 0; }
body.login-page .auth-view .auth-card::before { display: none; }
body.login-page .auth-card-head h2 { font-size: clamp(32px, 3.4vw, 42px); }
body.login-page .auth-card-head .eyebrow { margin-bottom: 12px; }
body.login-page .auth-view .field-wrap { background: rgba(255,255,255,.05); }
body.login-page .legal-copy { margin-top: 28px; text-align: left; }
body.login-page .auth-view { background: #181818; }

/* tablets & phones: hero collapses, form takes the whole screen */
@media (max-width: 900px) {
  body.login-page .login-shell { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-panel { background:
      radial-gradient(520px 360px at 85% -5%, rgba(111,131,255,.28), transparent 65%),
      radial-gradient(480px 380px at 0% 105%, rgba(224,82,156,.2), transparent 65%); padding: 18px 22px 26px; }
  .login-panel-top { justify-content: space-between; }
  .login-mobile-brand { display: inline-flex !important; }
  .login-mobile-brand .kc-wordmark { font-size: 40px; }
  .login-panel .auth-card-wrap { max-width: 480px; }
}
@media (max-width: 400px) { .login-mobile-brand .kc-wordmark { font-size: 34px; } .guest-pill span { display: none; } .guest-pill { padding: 0 12px; } }

/* --------------------- ONBOARDING: creator handle --------------------- */
.auth-view #handleBox.handle-input {
  align-items: center; background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.16); border-radius: 16px; display: flex; gap: 0;
  height: 62px; overflow: hidden; padding: 0; transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-view #handleBox.handle-input:focus-within { background: rgba(255,255,255,.075); border-color: #8b7bff; box-shadow: 0 0 0 4px rgba(139,123,255,.2); }
.auth-view #handleBox.handle-input > span { /* the "@" chip */
  align-items: center; align-self: stretch; background: linear-gradient(135deg, rgba(79,141,255,.3), rgba(139,108,255,.3)); border-right: 1px solid rgba(255,255,255,.12);
  color: #d9d2ff; display: inline-flex; font: 700 22px "Manrope", sans-serif; justify-content: center; margin: 0; width: 56px;
}
.auth-view #handleBox.handle-input input {
  background: transparent; border: 0; box-shadow: none; color: #fff; flex: 1; font: 700 18px "Manrope", sans-serif; height: 100%; letter-spacing: -.01em; min-width: 0; outline: 0; padding: 0 12px 0 16px;
}
.auth-view #handleBox.handle-input input::placeholder { color: rgba(248,250,255,.3); font-weight: 600; }
.auth-view #handleBox.handle-input .handle-status { margin-right: 16px; }
.auth-view #handleBox.handle-input.is-ok { border-color: #22c07a; box-shadow: 0 0 0 4px rgba(34,192,122,.14); }
.auth-view #handleBox.handle-input.is-ok > span { background: rgba(34,192,122,.22); color: #7ef0b8; }
.auth-view #handleBox.handle-input.is-bad { border-color: #f0566b; box-shadow: 0 0 0 4px rgba(240,86,107,.14); }
.auth-view #handleBox.handle-input.is-bad > span { background: rgba(240,86,107,.2); color: #ff9aa9; }
.auth-view .handle-msg { font-size: 12.5px; margin: 8px 2px 8px; min-height: 18px; }
.auth-view .handle-msg.is-ok { color: #5fe3a4; }
.auth-view .handle-msg.is-bad { color: #ff8a9b; }
.auth-view .handle-suggestions { gap: 8px; margin: 0 0 12px; }
.auth-view .handle-suggestions button {
  background: rgba(139,123,255,.14); border: 1px solid rgba(139,123,255,.35); border-radius: 999px; color: #d3cbff; cursor: pointer; font-size: 12.5px; font-weight: 700; padding: 7px 13px; transition: background .15s, transform .15s;
}
.auth-view .handle-suggestions button:hover { background: rgba(139,123,255,.28); transform: translateY(-1px); }
.auth-view .handle-preview {
  align-items: center; background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.16); border-radius: 12px; color: rgba(248,250,255,.55);
  display: flex; flex-wrap: wrap; font: 500 12px "DM Mono", monospace; gap: 6px; margin: 4px 0 14px; padding: 11px 14px; word-break: break-all;
}
.auth-view .handle-preview strong { color: #b9adff; font-weight: 700; }
.auth-view .handle-preview::before { /* link glyph */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9adff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4.5 4.5 0 0 0 6.4 0l3-3a4.5 4.5 0 0 0-6.4-6.4l-1 1'/%3E%3Cpath d='M14 10a4.5 4.5 0 0 0-6.4 0l-3 3a4.5 4.5 0 0 0 6.4 6.4l1-1'/%3E%3C/svg%3E") center / contain no-repeat;
  content: ""; flex: none; height: 15px; width: 15px;
}
