/* ============================================================
   Pack Peak — shared auth-flow styles
   Used by: login, forgot-password, signup, register-step1/2
   (from the XD doc "PackPeak - Login Sign Up Flows")
   ============================================================ */

body.auth-page {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
  /* auth cards work at any width — lift the app-wide tablet floor */
  min-width: 0;
}

/* Server-side flash messages / validation summaries are emitted with the
   app's legacy Bootstrap classes (alert / alert-danger / alert-success) via
   {!! Session::get('msg') !!} and the $errors bag. Style them in the design
   system so they read correctly without Bootstrap on the page. */
.auth-page .alert {
  width: 420px; max-width: 100%; margin: 0 auto 16px; text-align: left;
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px;
  border: 1px solid transparent;
}
.auth-page .alert ul { margin: 0; padding-left: 18px; }
.auth-page .alert-danger  { background: #fff6f6; border-color: #f3c2c0; color: var(--c-red); }
.auth-page .alert-success { background: #eefaf2; border-color: #b9e6ca; color: var(--c-green); }
/* The auth card hosts its own in-field errors too (.hint-error / input-error). */

.auth {
  width: 420px; max-width: 100%; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 40px 40px 34px; text-align: center;
  position: relative;
}
@media (max-width: 480px) {
  .auth { padding: 30px 22px 26px; }
}

.auth .brand-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 26px; }
.auth .brand-logo b { color: var(--ink); font-weight: 700; letter-spacing: 3px; font-size: 20px; }
.auth .brand-logo span { display: block; color: var(--muted); font-size: 7px; letter-spacing: 2px; margin-top: 3px; }

.auth .step-label { color: var(--muted); font-size: 14px; margin: -14px 0 22px; }

.google-btn {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font-weight: 600; display: flex; align-items: center;
  justify-content: center; gap: 10px; margin-bottom: 22px;
}

.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 4px 0 22px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.auth .field { text-align: left; }
.auth .field label .req { color: var(--c-red); margin-left: 3px; }

.field-2col { display: flex; gap: 14px; }
.field-2col .field { flex: 1; }

.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 40px; }
.pw-wrap .eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); background: none; border: none; padding: 0; display: flex;
}

.forgot { text-align: right; font-size: 11.5px; color: var(--muted); margin: -6px 0 22px; }

.auth-alt { font-size: 12.5px; color: var(--muted); margin-top: 18px; }
.auth-alt a { color: var(--blue); font-weight: 600; }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink); margin-top: 18px; }

/* Step 2 extras */
.prev-step {
  position: absolute; top: 26px; left: 26px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 8px 14px; font-size: 12px; font-weight: 500; color: var(--ink);
}
@media (max-width: 560px) {
  .prev-step { position: static; margin-bottom: 16px; }
}

.plans { display: flex; gap: 14px; margin: 4px 0 6px; }
.plan {
  flex: 1; padding: 12px 10px; border-radius: 30px; background: #fff;
  font-size: 13px; font-weight: 500; border: 1.5px solid;
}
.plan.basic    { color: var(--blue);  border-color: var(--blue); }
.plan.standard { color: var(--c-red); border-color: var(--c-red); }
.plan.premium  { color: var(--ink);  border-color: var(--ink); }
.plan.selected { box-shadow: 0 0 0 3px var(--blue-soft); }

.domain-row { display: flex; align-items: center; gap: 8px; }
.domain-row .fixed { color: var(--text); font-size: 13px; white-space: nowrap; }
.domain-row .input { text-align: center; }

.hint-ok { color: var(--c-green); font-size: 12px; margin-top: 7px; text-align: right; }
.hint-ok::before { content: "✔"; display: inline-block; margin-right: 6px; background: var(--c-green); color: #fff; border-radius: 50%; width: 15px; height: 15px; line-height: 15px; font-size: 9px; text-align: center; }

.terms { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--text); margin-top: 16px; }
.terms a { color: var(--blue); }
.terms .box {
  width: 16px; height: 16px; border-radius: 4px; background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px; flex: 0 0 auto;
}
