/* =====================================================================
   MIZUP PRODUCT AUTH  (V6.1 §30)

   Desktop: product visual on the left, form on the right.
   Mobile:  mark, product name, form. The visual panel is dropped rather
            than squashed - a shrunken dashboard preview on a phone is
            noise, and it pushes the form below the fold.

   Colours come from the product's own accent, injected as custom
   properties by ProductContext::styleVars() on <body>. This file never
   names a product colour, so adding a sixth product needs no change here.
   ===================================================================== */

.pa-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(1100px 620px at 12% -10%, color-mix(in srgb, var(--g-accent) 26%, transparent), transparent 62%),
    linear-gradient(155deg, var(--g-bg-a) 0%, var(--g-bg-b) 100%);
  color: #F4F4F6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.pa-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1360px;
  margin: 0 auto;
}

/* ---------------- left: product story ---------------- */

.pa-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: 42px 48px;
}

.pa-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.pa-brand-mark img { border-radius: 9px; display: block; }
.pa-brand-mark strong { display: block; font-size: 15px; color: #fff; letter-spacing: -0.01em; }
.pa-brand-mark small { display: block; font-size: 11px; color: rgba(255,255,255,.52); margin-top: 1px; }

.pa-brand-mid { max-width: 520px; }
.pa-brand-mid h2 {
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: #fff;
}
.pa-brand-mid p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.66);
  margin: 0 0 30px;
}

/* Dashboard preview. Pure CSS - no image to ship, no request to make. */
.pa-preview {
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  box-shadow: 0 26px 60px -28px rgba(0,0,0,.8);
  backdrop-filter: blur(8px);
}
.pa-preview-bar {
  display: flex;
  gap: 6px;
  padding: 11px 14px;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.pa-preview-bar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.pa-preview-bar span:first-child { background: color-mix(in srgb, var(--g-accent) 70%, transparent); }
.pa-preview-body { display: flex; min-height: 168px; }
.pa-preview-rail {
  width: 48px;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.pa-preview-rail i { width: 20px; height: 20px; border-radius: 7px; background: rgba(255,255,255,.12); }
.pa-preview-rail i:first-child { background: var(--g-accent); }
.pa-preview-main { flex: 1; padding: 16px 18px; }
.pa-preview-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.pa-preview-stat {
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
}
.pa-preview-stat strong { display: block; font-size: 16px; color: #fff; letter-spacing: -0.02em; }
.pa-preview-stat span { display: block; font-size: 9.5px; color: rgba(255,255,255,.5); margin-top: 3px; }
.pa-preview-rows { display: flex; flex-direction: column; gap: 9px; }
.pa-preview-rows u { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.09); }
.pa-preview-rows u:first-child { background: color-mix(in srgb, var(--g-accent) 45%, rgba(255,255,255,.09)); }

.pa-brand-foot { font-size: 13px; color: rgba(255,255,255,.4); margin: 0; }
.pa-brand-foot a { color: rgba(255,255,255,.62); text-decoration: none; }
.pa-brand-foot a:hover { color: #fff; }
.pa-brand-foot span { margin: 0 8px; }

/* ---------------- right: the form ---------------- */

.pa-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 48px;
  background: rgba(8, 8, 12, .38);
  border-left: 1px solid rgba(255,255,255,.07);
}
.pa-panel-inner { width: 100%; max-width: 392px; }

.pa-mobile-mark { display: none; align-items: center; gap: 10px; text-decoration: none; color: #fff; margin-bottom: 26px; }
.pa-mobile-mark img { border-radius: 8px; }
.pa-mobile-mark strong { font-size: 15px; }

.pa-title { font-size: 25px; letter-spacing: -0.024em; margin: 0 0 8px; color: #fff; }
.pa-lede { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.6); margin: 0 0 26px; }

.pa-flash {
  font-size: 13.5px;
  line-height: 1.5;
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.pa-flash--error   { background: rgba(230,83,61,.15);  color: #FFA994; border-color: rgba(230,83,61,.3); }
.pa-flash--success { background: rgba(46,212,122,.14); color: #77E6AC; border-color: rgba(46,212,122,.28); }
.pa-flash--info    { background: rgba(255,255,255,.08); color: rgba(255,255,255,.82); border-color: rgba(255,255,255,.14); }

.pa-note {
  font-size: 13px; line-height: 1.55;
  padding: 11px 13px; border-radius: 10px; margin-bottom: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
}

.pa-form label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(255,255,255,.68);
  margin: 0 0 7px;
}
.pa-form input[type="email"],
.pa-form input[type="text"],
.pa-form input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  margin: 0 0 17px;
  font-size: 14.5px;
  color: #fff;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  outline: none;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.pa-form input::placeholder { color: rgba(255,255,255,.3); }
.pa-form input:focus {
  border-color: var(--g-accent);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-accent) 22%, transparent);
}
.pa-form input[readonly] { opacity: .68; cursor: not-allowed; }

/* Show / hide password. The wrapper is injected by the page script. */
.pa-pw { position: relative; }
.pa-pw input { padding-right: 62px !important; }
.pa-pw-btn {
  position: absolute;
  top: 12px;
  right: 10px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  cursor: pointer;
}
.pa-pw-btn:hover { color: #fff; background: rgba(255,255,255,.14); }

.pa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 20px;
  font-size: 13px;
}
.pa-row a { color: rgba(255,255,255,.6); text-decoration: none; }
.pa-row a:hover { color: #fff; text-decoration: underline; }
.pa-check { display: inline-flex !important; align-items: center; gap: 7px; margin: 0 !important; font-weight: 400 !important; color: rgba(255,255,255,.6) !important; cursor: pointer; font-size: 13px !important; }
.pa-check input { width: auto !important; margin: 0 !important; accent-color: var(--g-accent); }

.pa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 18px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .1s ease, filter .14s ease, background .14s ease;
}
.pa-btn:active { transform: translateY(1px); }
.pa-btn[disabled] { opacity: .6; cursor: progress; }

.pa-btn--primary {
  background: var(--g-accent);
  color: #fff;
  box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--g-accent) 85%, transparent);
}
.pa-btn--primary:hover { filter: brightness(1.08); }

.pa-btn--google {
  background: #fff;
  color: #1F1F22;
  border-color: rgba(0,0,0,.08);
}
.pa-btn--google:hover { background: #F1F1F3; }

.pa-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: rgba(255,255,255,.35);
  font-size: 12px;
}
.pa-or::before, .pa-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.12);
}

.pa-alt { font-size: 13.5px; color: rgba(255,255,255,.55); text-align: center; margin: 22px 0 0; line-height: 1.55; }
.pa-alt a { color: var(--g-accent-2, var(--g-accent)); font-weight: 600; text-decoration: none; }
.pa-alt a:hover { text-decoration: underline; }

.pa-legal { font-size: 11.5px; color: rgba(255,255,255,.32); text-align: center; margin: 30px 0 0; }
.pa-legal a { color: rgba(255,255,255,.45); text-decoration: none; }
.pa-legal a:hover { color: rgba(255,255,255,.75); }
.pa-legal span { margin: 0 7px; }

/* ---------------- responsive (§30: mobile = logo, product, login) ---------------- */

@media (max-width: 980px) {
  .pa-shell { grid-template-columns: 1fr; }
  .pa-brand { display: none; }
  .pa-panel {
    border-left: 0;
    background: transparent;
    padding: 30px 22px 44px;
    align-items: flex-start;
  }
  .pa-mobile-mark { display: inline-flex; }
  .pa-panel-inner { max-width: 440px; margin: 0 auto; }
  .pa-title { font-size: 23px; }
}

@media (max-width: 420px) {
  .pa-panel { padding: 24px 18px 38px; }
  .pa-title { font-size: 21px; }
  .pa-row { flex-direction: row; flex-wrap: wrap; }
}

/* Respect the user's motion preference. */
@media (prefers-reduced-motion: reduce) {
  .pa-btn, .pa-form input { transition: none; }
  .pa-btn:active { transform: none; }
}
