/* Social Pocket - auth page (centered premium) */
.auth {
  position: relative;
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 34px 20px 60px;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
}
.auth-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.auth-bg-orb.ao1 {
  width: 560px; height: 560px;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201, 95, 126, .20), transparent 65%);
}
.auth-bg-orb.ao2 {
  width: 460px; height: 460px;
  bottom: -200px; right: 6%;
  background: radial-gradient(circle, rgba(97, 45, 83, .14), transparent 65%);
}
.auth-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(133, 57, 83, .09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
}

/* ---- Floating chips (desktop decor) ---- */
.chip {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--plum);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  animation: floaty 6s ease-in-out infinite;
  pointer-events: none;
  white-space: nowrap;
}
.chip svg { color: var(--plum); }
.chip.c1 { top: 20%; left: 7%; animation-delay: 0s; }
.chip.c2 { top: 26%; right: 8%; animation-delay: .8s; }
.chip.c3 { bottom: 24%; left: 11%; animation-delay: 1.6s; }
.chip.c4 { bottom: 30%; right: 6%; animation-delay: 2.4s; }

/* ---- Center column ---- */
.auth-center {
  position: relative;
  z-index: 2;
  width: min(470px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.auth-mark { margin-bottom: 22px; }
.am-logo {
  height: 74px;
  width: auto;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(44, 44, 44, .18);
}

/* ---- Card ---- */
.auth-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(44, 44, 44, .14);
  padding: 36px 36px 32px;
  position: relative;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: var(--grad);
}
.auth-card-head { text-align: center; margin-bottom: 26px; }
.auth-head-ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px rgba(133, 57, 83, .35);
}
.auth-card-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
.auth-card-head p { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---- Nav back button ---- */
.back-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, color .2s, background .2s, transform .15s;
}
.back-btn:hover { border-color: var(--plum); color: var(--plum); background: var(--grad-soft); transform: translateY(-1px); }

/* ---- Form ---- */
.field { margin-bottom: 16px; text-align: left; }
.label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.label-row label { margin-bottom: 0; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field-optional {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
}
.forgot { font-size: 12.5px; font-weight: 600; color: var(--plum); }
.forgot:hover { text-decoration: underline; }
.input-wrap { position: relative; }
.input-wrap > svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
  transition: color .2s;
}
.input-wrap:focus-within > svg { color: var(--plum); }
.field input {
  width: 100%;
  padding: 13.5px 15px 13.5px 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus {
  border-color: var(--plum);
  box-shadow: 0 0 0 4px rgba(133, 57, 83, .12);
  background: #fff;
}
.field input::placeholder { color: var(--faint); }

.strength { display: flex; gap: 6px; margin-top: 9px; }
.strength i { height: 4px; flex: 1; border-radius: 4px; background: var(--line); transition: background .25s; }

.auth-submit {
  width: 100%;
  padding: 15px;
  margin-top: 4px;
  border: none;
  border-radius: 13px;
  background: var(--grad);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(133, 57, 83, .38);
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, opacity .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(133, 57, 83, .45); }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.auth-alert {
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 13.5px;
  margin-bottom: 16px;
  display: none;
  animation: popIn .25s ease;
}
.auth-alert.show { display: block; }
.auth-alert.error { background: rgba(200, 60, 60, .1); color: #b3261e; border: 1px solid rgba(200, 60, 60, .25); }
.auth-alert.ok { background: rgba(46, 160, 90, .1); color: #1a7f4b; border: 1px solid rgba(46, 160, 90, .3); }

.auth-switch { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--plum); font-weight: 700; }

.demo-box {
  margin-top: 18px;
  background: var(--bg-tint);
  border: 1px dashed rgba(133, 57, 83, .4);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.demo-box code { font-weight: 700; color: var(--plum); }
.demo-fill {
  border: 1px solid rgba(133, 57, 83, .35);
  background: var(--surface);
  color: var(--plum);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}
.demo-fill:hover { background: rgba(133, 57, 83, .08); }

.check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  cursor: pointer;
  text-align: left;
}
.check input { margin-top: 3px; accent-color: var(--plum); }

/* ---- Under card: proof + foot ---- */
.auth-proof {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.auth-avatars { display: flex; }
.auth-avatars .av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  border: 2px solid var(--surface);
  margin-left: -8px;
}
.auth-avatars .av:first-child { margin-left: 0; }
.auth-avatars .av { background: linear-gradient(135deg, #e09db0, #c95f7e); }
.auth-avatars .av2 { background: linear-gradient(135deg, #b0607e, #853953); }
.auth-avatars .av3 { background: linear-gradient(135deg, #a8587a, #612d53); }
.auth-avatars .av4 { background: linear-gradient(135deg, #fff, #ffe2ea); color: #853953; font-size: 10px; }
.auth-rate { font-size: 13px; color: var(--muted); }
.auth-rate b { color: var(--ink); }
.auth-stars { color: #e8a33d; letter-spacing: 2px; font-size: 13px; }

.auth-foot {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--faint);
}

/* ---- Animations ---- */
.reveal-in { animation: revealUp .6s cubic-bezier(.22, 1, .36, 1) both; }
.auth-card { animation: revealUp .6s cubic-bezier(.22, 1, .36, 1) both .08s; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .chip { display: none; }
}
@media (max-width: 560px) {
  .auth { padding: 26px 14px 50px; }
  .auth-card { padding: 28px 20px 24px; }
  .am-logo { height: 62px; }
}
