/* Shared auth pages styles */
:root {
  --orange: #f5832a;
  --orange-2: #ff5e1a;
  --bg: #0b0b0f;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Animated background ---------- */
.bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.blob {
  position: absolute; border-radius: 9999px; filter: blur(80px);
  will-change: transform;
}
.blob.b1 {
  width: 520px; height: 520px; top: -160px; left: -160px;
  background: radial-gradient(closest-side, rgba(245,131,42,0.33), transparent);
  animation: drift1 18s ease-in-out infinite;
}
.blob.b2 {
  width: 600px; height: 600px; bottom: -160px; right: -160px;
  background: radial-gradient(closest-side, rgba(255,94,26,0.27), transparent);
  animation: drift2 22s ease-in-out infinite;
}
.blob.b3 {
  width: 400px; height: 400px; top: 33%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255,174,102,0.20), transparent);
  animation: pulse 14s ease-in-out infinite;
}
@keyframes drift1 {
  0%,100% { transform: translate(0,0); }
  33% { transform: translate(80px, 60px); }
  66% { transform: translate(-40px, -30px); }
}
@keyframes drift2 {
  0%,100% { transform: translate(0,0); }
  33% { transform: translate(-60px, -50px); }
  66% { transform: translate(40px, 30px); }
}
@keyframes pulse {
  0%,100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
  50% { transform: translateX(-50%) scale(1.2); opacity: 0.9; }
}

.grid {
  position: absolute; inset: 0; opacity: 0.08;
  background-image:
    linear-gradient(to right, #fff 1px, transparent 1px),
    linear-gradient(to bottom, #fff 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
}

/* ---------- Card ---------- */
.wrap {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 64px 16px;
}
.card-outer { position: relative; width: 100%; max-width: 440px; }
.card-glow {
  position: absolute; inset: -1px; border-radius: 26px; padding: 1px;
  background: conic-gradient(from 0deg, var(--orange), transparent 30%, var(--orange) 60%, transparent 90%, var(--orange));
  filter: blur(6px); opacity: 0.7; z-index: 0;
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px -20px rgba(245,131,42,0.35);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.logo-link { display: flex; justify-content: center; margin-bottom: 24px; }
.logo-link img { height: 80px; width: 80px; object-fit: contain; transition: transform 0.6s; }
.logo-link:hover img { animation: wiggle 0.6s ease; }
@keyframes wiggle {
  0%,100% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-8deg) scale(1.05); }
  75% { transform: rotate(8deg) scale(1.05); }
}

.title {
  margin: 0; text-align: center; font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  animation: fade 0.6s 0.15s both;
}
.subtitle {
  margin: 8px 0 0; text-align: center; font-size: 14px; color: var(--muted);
  animation: fade 0.6s 0.22s both;
}
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

form { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- Floating label inputs ---------- */
.field { position: relative; animation: slide 0.5s both; }
.field.d1 { animation-delay: 0.30s; }
.field.d2 { animation-delay: 0.36s; }
.field.d3 { animation-delay: 0.42s; }
@keyframes slide { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

.field input {
  width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,0.03);
  border-radius: 12px; padding: 20px 44px 8px 16px; font-size: 14px; color: var(--text);
  outline: none; transition: border-color .25s, background .25s, box-shadow .25s;
  font-family: inherit;
}
.field input::placeholder { color: transparent; }
.field input:focus {
  border-color: var(--orange);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(245,131,42,0.15);
}
.field label {
  position: absolute; left: 16px; top: 14px; font-size: 14px; color: rgba(255,255,255,0.5);
  pointer-events: none; transition: top .2s, font-size .2s, color .2s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 6px; font-size: 11px; color: var(--orange);
}
.field .icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: rgba(255,255,255,0.4); pointer-events: none;
}

/* ---------- Row helpers ---------- */
.row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.row label { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.row a { color: var(--muted); }
.row a:hover { color: var(--orange); text-decoration: none; }
input[type="checkbox"] { accent-color: var(--orange); }

/* ---------- Button ---------- */
.btn {
  position: relative; overflow: hidden; width: 100%;
  border: 0; border-radius: 12px; padding: 12px 20px;
  font-size: 14px; font-weight: 600; color: white; cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 10px 30px -10px rgba(245,131,42,0.7);
  transition: transform .15s;
  animation: fade 0.6s 0.5s both;
}
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(0.98); }
.btn::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: transform .7s;
}
.btn:hover::after { transform: translateX(100%); }

/* ---------- Divider + social ---------- */
.divider { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.divider span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); }

.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.socials button {
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
  border-radius: 12px; padding: 10px 16px; color: rgba(255,255,255,0.85);
  font-size: 14px; cursor: pointer; transition: transform .2s, border-color .2s, color .2s;
  font-family: inherit;
}
.socials button:hover { transform: translateY(-2px); border-color: rgba(245,131,42,0.5); color: white; }

/* ---------- Footer link ---------- */
.foot { margin-top: 24px; text-align: center; font-size: 14px; color: var(--muted); }
.foot a { font-weight: 500; }

/* ---------- Password strength ---------- */
.strength { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.bars { display: flex; gap: 4px; flex: 1; }
.bars span {
  flex: 1; height: 6px; border-radius: 9999px; background: rgba(255,255,255,0.1);
  transition: background .3s;
}
.strength-label { width: 80px; text-align: right; font-size: 11px; color: rgba(255,255,255,0.5); }

.terms { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.terms input { margin-top: 2px; }
