/* =========================================================
   QWIKGLAM — ARTIST SIGNUP (LIGHT LUXE · PETAL EDITION)
   Rose Gold · Blush · Cream · Champagne
   Progress System • Silk Animations • Glass UI
========================================================= */

/* =========================================================
   0. MOTION & COLOR TOKENS
========================================================= */
:root {
  --qg-ease: cubic-bezier(.2,.8,.2,1);
  --qg-bounce: cubic-bezier(.34,1.56,.64,1);
  --qg-fast: 0.28s;
  --qg-medium: 0.45s;
  --qg-slow: 0.7s;

  /* Rose Gold Palette */
  --rose-1: #e8a0b4;
  --rose-2: #d4728c;
  --rose-deep: #b8446a;
  --gold-1: #d4a76a;
  --gold-2: #c49553;
  --gold-glow: rgba(212,167,106,0.25);

  /* Surfaces */
  --bg-body: #FEF7F2;
  --bg-card: rgba(255,255,255,0.82);
  --bg-input: rgba(255,255,255,0.7);
  --bg-input-focus: rgba(255,255,255,0.95);

  /* Ink */
  --ink-main: #3a2434;
  --ink-soft: #6e4d5e;
  --ink-hint: #b89aa6;
  --ink-muted: #9c7a8a;

  /* Borders */
  --bdr: rgba(180,130,150,0.18);
  --bdr-focus: rgba(212,114,140,0.55);
  --bdr-gold: rgba(212,167,106,0.5);

  /* Status */
  --success: #4aae8c;
  --error: #e05c6a;
  --info: #c49553;
}

/* =========================================================
   1. HARD RESET
========================================================= */
*,*::before,*::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg-body);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.qg-signup-body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* =========================================================
   2. BACKDROP (SOFT WARMTH)
========================================================= */
.qg-auth-backdrop {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(
      900px 600px at 30% -10%,
      rgba(232,160,180,0.18),
      transparent 55%
    ),
    radial-gradient(
      700px 500px at 85% 15%,
      rgba(212,167,106,0.14),
      transparent 60%
    ),
    radial-gradient(
      500px 400px at 50% 90%,
      rgba(212,114,140,0.08),
      transparent 50%
    ),
    linear-gradient(175deg, #FEF7F2 0%, #FFF5EE 40%, #FEF0E8 80%, #FCEEE5 100%);
}

/* Decorative floating petal shapes */
.qg-auth-backdrop::before,
.qg-auth-backdrop::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.45;
  animation: qg-float 18s ease-in-out infinite alternate;
}
.qg-auth-backdrop::before {
  width: 260px; height: 260px;
  top: -60px; right: -40px;
  background: radial-gradient(circle, rgba(232,160,180,0.2), transparent 70%);
}
.qg-auth-backdrop::after {
  width: 200px; height: 200px;
  bottom: 10%; left: -30px;
  background: radial-gradient(circle, rgba(212,167,106,0.15), transparent 70%);
  animation-delay: -6s;
  animation-duration: 22s;
}
@keyframes qg-float {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(15px,-20px) scale(1.05); }
  100% { transform: translate(-10px,15px) scale(0.97); }
}

/* =========================================================
   3. APP WRAPPER
========================================================= */
.qg-signup-app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 64px 20px;
}

/* =========================================================
   4. SIGNUP CARD (FROSTED GLASS)
========================================================= */
.qg-signup-card {
  width: 100%;
  max-width: 520px;
  padding: 56px 48px;
  border-radius: 36px;
  position: relative;
  overflow: hidden;

  background: var(--bg-card);
  backdrop-filter: blur(40px) saturate(1.3);
  -webkit-backdrop-filter: blur(40px) saturate(1.3);

  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.6) inset,
    0 -1px 0 0 rgba(180,130,150,0.06) inset,
    0 40px 100px rgba(60,20,40,0.08),
    0 8px 32px rgba(60,20,40,0.04);

  border: 1px solid rgba(255,255,255,0.5);
  text-align: center;

  animation: qg-card-enter var(--qg-slow) var(--qg-ease) both;
}

/* Subtle shimmer edge */
.qg-signup-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 10%,
    rgba(212,167,106,0.4) 50%,
    transparent 90%
  );
}

@keyframes qg-card-enter {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================================
   5. HEADER
========================================================= */
.qg-signup-header h1 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink-main);
}

.qg-signup-header h1 span {
  font-style: italic;
  background: linear-gradient(135deg, var(--rose-1), var(--gold-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.qg-signup-header p {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  letter-spacing: 0.015em;
  font-weight: 400;
}

/* =========================================================
   6. PROGRESS DOTS (PETAL STYLE)
========================================================= */
.qg-progress {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 10px;
}

.qg-progress-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(180,130,150,0.25);
  transition:
    transform var(--qg-fast) var(--qg-ease),
    background var(--qg-fast) var(--qg-ease),
    box-shadow var(--qg-fast) var(--qg-ease);
}

.qg-progress-dot.active {
  background: linear-gradient(135deg, var(--rose-1), var(--rose-2));
  transform: scale(1.5);
  box-shadow: 0 0 0 5px rgba(232,160,180,0.2);
}

.qg-progress-dot.done {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  box-shadow: 0 0 12px rgba(212,167,106,0.35);
}

/* =========================================================
   7. FORM CORE
========================================================= */
form { margin-top: 26px; }

/* =========================================================
   8. MULTI-STEP SYSTEM
========================================================= */
.qg-step {
  display: none;
  gap: 16px;
  animation: qg-step-enter var(--qg-medium) var(--qg-ease) both;
}

.qg-step.active { display: grid; }

@keyframes qg-step-enter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   9. INPUTS (SOFT LUXURY)
========================================================= */
input,
select,
textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;

  background: var(--bg-input);
  border: 1.5px solid var(--bdr);

  color: var(--ink-main);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;

  transition:
    border-color var(--qg-fast) ease,
    background var(--qg-fast) ease,
    box-shadow var(--qg-fast) ease,
    transform 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-hint);
  font-weight: 400;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--bdr-focus);
  background: var(--bg-input-focus);
  box-shadow:
    0 0 0 4px rgba(212,114,140,0.1),
    0 4px 16px rgba(60,20,40,0.04);
  transform: translateY(-1px);
}

/* Input error state */
input.error,
select.error {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(224,92,106,0.12);
}

textarea {
  resize: none;
  min-height: 92px;
  line-height: 1.55;
}

select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: var(--ink-main);
}
select option {
  background: #fff;
  color: var(--ink-main);
}

/* =========================================================
   10. BUTTON SYSTEM (ROSE GOLD LUXURY)
========================================================= */
.btn {
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.015em;
  position: relative;
  overflow: hidden;

  transition:
    transform 0.2s var(--qg-ease),
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.btn:active { transform: scale(0.96); }

.btn.primary {
  background: linear-gradient(135deg, var(--rose-1), var(--rose-deep));
  color: #ffffff;
  box-shadow:
    0 12px 32px rgba(184,68,106,0.25),
    0 2px 6px rgba(184,68,106,0.15);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 44px rgba(184,68,106,0.3),
    0 4px 10px rgba(184,68,106,0.18);
}

/* Shimmer on primary button */
.btn.primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 0; bottom: 0;
  width: 60%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.2),
    transparent
  );
  animation: qg-shimmer 3.5s ease-in-out infinite;
}
@keyframes qg-shimmer {
  0%   { left: -100%; }
  40%  { left: 120%; }
  100% { left: 120%; }
}

.btn.ghost {
  background: rgba(180,130,150,0.08);
  color: var(--ink-soft);
  border: 1.5px solid var(--bdr);
}
.btn.ghost:hover {
  background: rgba(180,130,150,0.14);
  border-color: rgba(180,130,150,0.3);
}

.qg-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

/* =========================================================
   11. STATUS
========================================================= */
#signupStatus {
  margin-top: 14px;
  font-size: 0.85rem;
  min-height: 18px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* =========================================================
   12. MOBILE PERFECTION
========================================================= */
@media (max-width: 520px) {
  .qg-signup-card {
    padding: 40px 24px 36px;
    border-radius: 28px;
  }
  .qg-signup-header h1 {
    font-size: 2.2rem;
  }
  .qg-step-actions {
    flex-direction: column-reverse;
  }
  .qg-step-actions .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .qg-signup-card {
    padding: 32px 18px 28px;
    border-radius: 24px;
  }
  .qg-signup-header h1 { font-size: 1.9rem; }
}