/* ================================================
   VaseBit Artists — Account / Auth
   Cream background, minimal, SVG-driven
   ================================================ */

:root {
  --cream:      #f6f1e7;          /* page background          */
  --cream-2:    #efe8da;          /* subtle alt surface       */
  --card:       #fffdf8;          /* card surface             */
  --ink:        #1c1a17;          /* primary text             */
  --ink-dim:    #6b655c;          /* secondary text           */
  --ink-faint:  #9a948a;          /* tertiary / placeholder   */
  --line:       #e4dccd;          /* borders                  */
  --line-soft:  #ece5d7;
  --accent:     #1c1a17;          /* primary action (ink)     */
  --accent-hov: #332f2a;
  --danger:     #b4452f;
  --danger-bg:  #f7e7e2;
  --ok:         #3f7d52;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:     16px;
  --radius-sm:  11px;
  --ease:       cubic-bezier(0.3, 0.1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--cream);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.6) 0%, transparent 42%),
    radial-gradient(circle at 84% 88%, rgba(228,220,205,0.5) 0%, transparent 46%);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input { font: inherit; }

/* ── Layout ── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  gap: 22px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 34px 30px;
  box-shadow: 0 1px 2px rgba(28,26,23,0.04), 0 18px 48px -24px rgba(28,26,23,0.22);
}

/* ── Brand ── */
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 26px;
}
.brand-mark {
  width: 22px; height: 22px;
  color: var(--ink);
  align-self: center;
}
.brand-a { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.02em; }
.brand-b {
  font-size: 0.68rem; font-weight: 500; color: var(--ink-dim);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ── Titles ── */
.auth-title { font-size: 1.55rem; font-weight: 600; letter-spacing: -0.025em; }
.auth-sub   { font-size: 0.92rem; color: var(--ink-dim); margin-top: 5px; }

/* ── Tabs ── */
.tabs {
  position: relative;
  display: flex;
  background: var(--cream-2);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin: 24px 0 22px;
}
.tab {
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 9px 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-dim);
  border-radius: 8px;
  transition: color 0.25s var(--ease);
}
.tab.active { color: var(--ink); }
.tab-indicator {
  position: absolute;
  top: 4px; left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(28,26,23,0.07);
  transition: transform 0.3s var(--ease);
}
.tabs.signup .tab-indicator { transform: translateX(100%); }

/* ── Forms ── */
[hidden] { display: none !important; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.field-label { font-size: 0.8rem; font-weight: 500; color: var(--ink-dim); }
.field-label em { font-style: normal; color: var(--ink-faint); font-weight: 400; }
.field-hint { font-size: 0.74rem; color: var(--ink-faint); }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 13px;
  width: 18px; height: 18px;
  color: var(--ink-faint);
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  padding: 12px 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.input-wrap input::placeholder { color: var(--ink-faint); }
.input-wrap input:focus {
  border-color: var(--ink);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(28,26,23,0.07);
}
.input-icon ~ input { padding-left: 40px; }

/* show/hide password */
.toggle-eye {
  position: absolute;
  right: 8px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint);
  border-radius: 8px;
}
.toggle-eye:hover { color: var(--ink-dim); }
.toggle-eye svg { width: 18px; height: 18px; }

/* ── Turnstile ── */
.cf-turnstile { min-height: 65px; margin-top: 2px; }

/* ── Primary button ── */
.btn-primary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  margin-top: 4px;
  background: var(--accent);
  color: #fbf8f1;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.08s, opacity 0.2s;
}
.btn-primary:hover { background: var(--accent-hov); }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(251,248,241,0.35);
  border-top-color: #fbf8f1;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Alert ── */
.alert {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(180,69,47,0.2);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.alert.ok { background: #e7f1ea; color: var(--ok); border-color: rgba(63,125,82,0.2); }

/* ── Footer ── */
.auth-foot {
  margin-top: 22px;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--ink-faint);
  text-align: center;
}
.auth-foot a { color: var(--ink-dim); text-decoration: underline; text-underline-offset: 2px; }
.copy { font-size: 0.74rem; color: var(--ink-faint); }

/* ── Responsive ── */
@media (max-width: 480px) {
  .auth-card { padding: 30px 22px 24px; }
  .field-row { flex-direction: column; gap: 16px; }
  .auth-title { font-size: 1.4rem; }
}
