/* Login & Sign Up — kartu kaca di atas gradasi biru-ungu */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --ink: #2a1b5c;
  --text: #3b3851;
  --muted: #6b6880;
  --link: #4f6bed;
  --violet: #8b5cf6;
}

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #2f80ed 0%, #5b5bf0 35%, #9b51e0 70%, #d65bd6 100%);
  background-attachment: fixed;
}

.auth-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.auth-bg::before,
.auth-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}
.auth-bg::before { width: 460px; height: 460px; left: -120px; bottom: -140px; background: #38bdf8; }
.auth-bg::after { width: 420px; height: 420px; right: -100px; top: -120px; background: #f0abfc; }

.auth-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-heading {
  margin: 0 0 28px;
  color: #fff;
  font-weight: 800;
  font-size: clamp(30px, 6vw, 46px);
  letter-spacing: -.5px;
  text-align: center;
  text-shadow: 0 6px 24px rgba(40, 20, 120, .35);
}
.auth-heading small { display: block; font-size: 15px; font-weight: 600; opacity: .85; letter-spacing: 0; margin-top: 6px; }

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 34px 32px 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px rgba(40, 20, 120, .35), inset 0 1px 0 #fff;
}

.auth-avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #f472b6 0%, #a855f7 45%, #3b82f6 100%);
  box-shadow: 0 10px 26px rgba(124, 58, 237, .35), 0 0 0 5px rgba(255, 255, 255, .85);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.auth-avatar svg { width: 72%; height: auto; }

.auth-title {
  margin: 4px 0 22px;
  text-align: center;
  color: var(--ink);
  font-size: 34px;
  font-weight: 800;
}

.field { margin-bottom: 18px; }
.field label,
.field-row label { display: block; font-weight: 700; font-size: 14.5px; color: #2d2a40; margin-bottom: 8px; }
.field-row { display: flex; align-items: baseline; justify-content: space-between; }
.link-sm { font-size: 13px; color: var(--link); text-decoration: none; font-weight: 600; }
.link-sm:hover { text-decoration: underline; }

.input-wrap { position: relative; }
.input-wrap svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #6f6b88;
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  padding: 14px 14px 14px 46px;
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 13px;
  background: #fff;
  font: inherit;
  font-size: 15.5px;
  color: #2d2a40;
  box-shadow: 0 4px 16px rgba(80, 60, 160, .12);
  outline: none;
  transition: box-shadow .15s, border-color .15s;
}
.input-wrap input::placeholder { color: #8a87a0; }
.input-wrap input:focus { border-color: #c4b5fd; box-shadow: 0 0 0 4px rgba(139, 92, 246, .18), 0 4px 16px rgba(80, 60, 160, .12); }

.remember { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 4px 0 22px; cursor: pointer; }
.remember input { width: 16px; height: 16px; accent-color: var(--violet); }

.btn-grad {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, #8b5cf6, #4f6bed);
  box-shadow: 0 12px 24px rgba(79, 107, 237, .4);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-grad:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 28px rgba(79, 107, 237, .5); }
.btn-grad:active { transform: translateY(0); }
.btn-grad.pink { background: linear-gradient(90deg, #ec4fb6, #7c3aed); box-shadow: 0 12px 24px rgba(168, 60, 220, .4); }

.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; color: var(--muted); font-size: 13.5px; }
.divider::before,
.divider::after { content: ""; flex: 1; height: 1px; background: rgba(110, 100, 150, .25); }

.socials { display: flex; justify-content: center; gap: 30px; }
.social {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(60, 40, 140, .18);
  transition: transform .15s, box-shadow .15s;
}
.social:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(60, 40, 140, .25); }
.social svg { width: 28px; height: 28px; }

.auth-foot { text-align: center; margin: 24px 0 0; font-size: 15.5px; color: var(--text); }
.auth-foot a { color: var(--link); font-weight: 800; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

.alert { border-radius: 12px; padding: 11px 14px; font-size: 14px; margin-bottom: 18px; line-height: 1.45; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: #fdecef; color: #b4234a; border: 1px solid #f8c9d4; }
.alert-ok { background: #e9f9ef; color: #1d7a45; border: 1px solid #bfe9cf; }

.auth-note { text-align: center; font-size: 14px; color: var(--muted); margin: -8px 0 20px; }

@media (max-width: 420px) {
  .auth-card { padding: 28px 22px 24px; border-radius: 22px; }
  .auth-title { font-size: 30px; }
}
