/* ============================================================
   FashionFlow.online — Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ── Variables ── */
:root {
  --ink:         #0f0d0a;
  --ink-light:   #1a1814;
  --ink-mid:     #2a2720;
  --cream:       #faf7f2;
  --cream-dark:  #f0ede7;
  --gold:        #c9973a;
  --gold-light:  #e8c97a;
  --gold-dim:    rgba(201,151,58,0.15);
  --rose:        #c2435a;
  --green:       #2d9e5f;
  --slate:       #3a3a4a;
  --muted:       #8a8a9a;
  --border:      rgba(201,151,58,0.2);
  --border-light:rgba(0,0,0,0.08);
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.14);
  --radius:      10px;
  --radius-sm:   6px;
  --radius-lg:   16px;
  --transition:  0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Flash Messages ── */
.ff-flash {
  color: #fff;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ff-flash::before { content: '●'; font-size: 8px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary   { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--gold); color: var(--ink); }
.btn-gold      { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #b8862e; }
.btn-outline   { background: transparent; border: 1.5px solid var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger    { background: var(--rose); color: #fff; }
.btn-success   { background: var(--green); color: #fff; }
.btn-sm        { padding: 8px 16px; font-size: 12px; }
.btn-lg        { padding: 16px 32px; font-size: 16px; }
.btn-block     { display: flex; width: 100%; }
.btn:disabled  { opacity: 0.5; cursor: not-allowed; }

/* ── Form Elements ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-family: 'Space Mono', monospace;
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-control::placeholder { color: #bbb; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--rose); margin-top: 5px; }

/* ── Auth Layout ── */
.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-side {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px;
}
.auth-side::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,151,58,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.auth-side-logo {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--cream);
  position: absolute;
  top: 50px; left: 60px;
}
.auth-side-logo span { color: var(--gold); }
.auth-side-quote {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.auth-side-sub {
  font-size: 14px;
  color: rgba(250,247,242,0.5);
  position: relative;
  z-index: 1;
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}
.auth-card p.subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}
.auth-divider {
  text-align: center;
  margin: 24px 0;
  position: relative;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border-light);
}
.auth-divider span {
  background: var(--cream);
  padding: 0 12px;
  font-size: 12px;
  color: var(--muted);
  position: relative;
}

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.badge-gold    { background: var(--gold-dim); color: #8a6520; }
.badge-green   { background: rgba(45,158,95,0.12); color: var(--green); }
.badge-rose    { background: rgba(194,67,90,0.1); color: var(--rose); }
.badge-slate   { background: rgba(58,58,74,0.08); color: var(--slate); }
.badge-ink     { background: var(--ink); color: var(--cream); }

/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-panel { padding: 32px 20px; }
}
