/* auth.css — Auth page styles: login, talent-signup, fan-signup */

/* ─── AUTH PAGE WRAPPER ───────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.12) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}

.auth-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 28px;
  display: block;
  filter: drop-shadow(0 0 16px rgba(139,92,246,0.25));
}

/* ─── HEADINGS ─────────────────────────────────────────── */
.auth-card h1 {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: -0.025em;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--silver);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.55;
}

/* ─── ACCOUNT TYPE TABS ────────────────────────────────── */
.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 11px 0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--silver);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.auth-tab:hover {
  border-color: rgba(139,92,246,0.4);
  color: var(--white);
}

.auth-tab.active {
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.5);
  color: var(--purple);
}

.auth-tab.talent-tab.active {
  background: rgba(139,92,246,0.2);
  border-color: var(--purple);
  color: var(--white);
}

/* ─── FORM ELEMENTS ────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"],
.auth-form input[type="url"],
.auth-form select,
.auth-form textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.auth-form input::placeholder,
.auth-form textarea::placeholder {
  color: var(--muted);
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: rgba(139,92,246,0.6);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
}

.auth-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2355556a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.auth-form textarea {
  resize: vertical;
  min-height: 90px;
}

.auth-form label.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--silver);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ─── CHECKBOXES ───────────────────────────────────────── */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--silver);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  background: var(--bg-2);
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--purple);
}

/* ─── SUBMIT BUTTON ─────────────────────────────────────── */
.auth-submit {
  width: 100%;
  padding: 14px;
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: inherit;
}

.auth-submit:hover:not(:disabled) {
  background: var(--purple-dim);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(139,92,246,0.4);
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ─── ERROR MESSAGE ────────────────────────────────────── */
.auth-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  color: #f87171;
  font-size: 0.85rem;
  display: none;
  margin-bottom: 4px;
}
.auth-error.show { display: block; }

/* ─── FOOTER LINK ──────────────────────────────────────── */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--purple);
  font-weight: 600;
}

/* ─── FORGOT PASSWORD ──────────────────────────────────── */
.auth-forgot {
  text-align: right;
  margin-top: -6px;
}
.auth-forgot a {
  font-size: 0.8rem;
  color: var(--muted);
}
.auth-forgot a:hover { color: var(--silver); }

/* ─── STEP PROGRESS (TALENT SIGNUP) ─────────────────────── */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 32px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}

.step-dot.active {
  background: var(--purple);
  width: 28px;
  border-radius: 4px;
}

.step-dot.completed {
  background: rgba(139,92,246,0.4);
}

.step-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 0 4px;
}

.step-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.step-label.active { color: var(--purple); }
.step-label.completed { color: rgba(139,92,246,0.5); }

/* ─── FORM SECTIONS (MULTI-STEP) ──────────────────────── */
.step-section {
  display: none;
}
.step-section.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 4px;
}

/* ─── NAV BUTTONS (MULTI-STEP) ─────────────────────────── */
.step-nav {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.step-nav .btn-next {
  flex: 1;
}

.step-nav .btn-back {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--silver);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.step-nav .btn-back:hover {
  border-color: rgba(139,92,246,0.4);
  color: var(--white);
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 540px) {
  .auth-card {
    padding: 36px 24px;
    border-radius: 16px;
  }
  .auth-logo { height: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .step-labels { display: none; }
}