/* =====================================================
   NEWPLACESHOT.COM — AUTH PAGES (login, register, forgot password)
   Forces light-theme tokens so card text is always readable
   ===================================================== */

/* Override dark shared.css tokens for auth pages */
:root {
  --text:           #0f172a;
  --text-secondary: #334155;
  --text-muted:     #64748b;
  --border:         #e2e8f0;
  --border-strong:  #cbd5e1;
  --bg:             #f8fafc;
  --bg-input:       #f8fafc;
}

html, body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === BACKGROUND === */
.auth-bg {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #f3e8ff 0%, #fce7f3 50%, #fff1f2 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative blobs */
.auth-bg::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(232,24,90,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.auth-bg::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -80px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(192,132,252,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* === HEADER === */
.auth-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f172a;
}
.auth-logo .logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff;
}
.auth-logo .logo-text { line-height: 1.2; }
.auth-logo .logo-text strong { font-size: 1.05rem; font-weight: 800; display: block; }
.auth-logo .logo-text span { font-size: 0.68rem; opacity: 0.7; font-weight: 400; }

.auth-header-links { display: flex; align-items: center; gap: 14px; }
.auth-header-links a {
  color: #475569; font-size: 0.82rem; text-decoration: none;
  font-weight: 500; transition: color 0.18s;
}
.auth-header-links a:hover { color: var(--primary); }
.auth-header-links .btn-header {
  background: rgba(232,24,90,0.08); border: 1px solid rgba(232,24,90,0.25);
  padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
  color: var(--primary); text-decoration: none; transition: background 0.18s;
}
.auth-header-links .btn-header:hover { background: rgba(232,24,90,0.15); }

/* === MAIN AREA === */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 48px;
  position: relative;
  z-index: 2;
}

/* === CARD === */
.auth-card {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
}

/* Card wider for register */
.auth-card.wide { max-width: 520px; }

/* === CARD HEADER STRIPE === */
.card-stripe {
  background: linear-gradient(135deg, var(--primary) 0%, #FF4D8A 100%);
  padding: 24px 28px 20px;
  color: #fff;
}
.card-stripe .stripe-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,255,255,0.15); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; margin-bottom: 12px;
}
.card-stripe h1 { font-size: 1.45rem; font-weight: 800; margin-bottom: 4px; }
.card-stripe p  { font-size: 0.82rem; opacity: 0.82; line-height: 1.5; }

/* === CARD BODY === */
.card-body { padding: 28px; }

/* === FORM FIELDS === */
.f-group { margin-bottom: 18px; }
.f-group label {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-secondary); margin-bottom: 6px;
}
.f-group label i { color: var(--primary); font-size: 0.75rem; width: 14px; }

.f-group input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border-strong); border-radius: 8px;
  font-family: inherit; font-size: 0.9rem; color: var(--text);
  background: #fff; transition: border-color 0.18s, box-shadow 0.18s;
}
.f-group input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.f-group input.valid   { border-color: #16a34a; }
.f-group input.invalid { border-color: #dc2626; }

/* Password wrapper */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.toggle-password {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); font-size: 0.95rem; cursor: pointer; padding: 4px;
}
.toggle-password:hover { color: var(--primary); }

/* Two-column row */
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .f-row { grid-template-columns: 1fr; } }

/* === SUBMIT BUTTON === */
.form-btn {
  width: 100%; padding: 13px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 10px;
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: background 0.18s, transform 0.15s;
  margin-top: 6px;
}
.form-btn:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); }
.form-btn:disabled { background: #d4c8d2; color: #9a8f98; cursor: not-allowed; transform: none; }

.form-btn.secondary {
  background: transparent; border: 1.5px solid var(--primary);
  color: var(--primary); margin-top: 10px;
}
.form-btn.secondary:hover:not(:disabled) { background: var(--primary-soft); transform: none; }

/* === MESSAGE AREAS === */
.message-area { margin-bottom: 18px; }

.error-msg, .success-msg, .info-msg {
  padding: 11px 14px; border-radius: 8px; font-size: 0.83rem; font-weight: 500;
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.5;
}
.error-msg   { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.success-msg { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
.info-msg    { background: #dbeafe; border: 1px solid #93c5fd; color: #1e40af; }

.error-msg i, .success-msg i, .info-msg i { flex-shrink: 0; margin-top: 2px; }

/* === DIVIDER === */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--text-muted); font-size: 0.78rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* === FORM FOOTER LINKS === */
.form-links {
  text-align: center; margin-top: 20px;
  font-size: 0.83rem; color: var(--text-muted);
}
.form-links a { color: var(--primary); font-weight: 600; text-decoration: none; }
.form-links a:hover { text-decoration: underline; }

.back-home {
  display: block; text-align: center; margin-top: 16px;
  font-size: 0.8rem; color: var(--text-muted); text-decoration: none;
  transition: color 0.18s;
}
.back-home:hover { color: var(--primary); }

/* === CHECKBOX === */
.check-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.83rem; color: var(--text-secondary); cursor: pointer;
  margin: 14px 0;
}
.check-label input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; margin-top: 2px;
}
.check-label a { color: var(--primary); font-weight: 600; }

/* Extra options row (remember me + forgot) */
.form-extras {
  display: flex; align-items: center; justify-content: space-between;
  margin: 14px 0; flex-wrap: wrap; gap: 8px;
}
.form-extras .check-label { margin: 0; font-size: 0.8rem; }
.form-extras .forgot-link { font-size: 0.8rem; color: var(--primary); font-weight: 600; text-decoration: none; }
.form-extras .forgot-link:hover { text-decoration: underline; }

/* === STEP INDICATOR (forgot password) === */
.step-indicator {
  display: flex; align-items: center; gap: 0; margin-bottom: 22px;
}
.step-dot {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
  background: var(--border); color: var(--text-muted);
}
.step-dot.done  { background: #16a34a; color: #fff; }
.step-dot.active { background: var(--primary); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--border); }
.step-line.done { background: #16a34a; }
.step-label { font-size: 0.7rem; text-align: center; margin-top: 4px; color: var(--text-muted); }

/* === CODE INPUT === */
.code-inputs {
  display: flex; gap: 10px; justify-content: center; margin: 4px 0 8px;
}
.code-inputs input {
  width: 46px; height: 54px; text-align: center;
  font-size: 1.3rem; font-weight: 700; border: 2px solid var(--border-strong);
  border-radius: 8px; font-family: monospace;
}
.code-inputs input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); outline: none; }

/* === TRUST BADGES === */
.trust-row {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.72rem; color: var(--text-muted); font-weight: 500;
}
.trust-item i { color: #16a34a; }

/* === FOOTER === */
.auth-footer {
  text-align: center; padding: 16px 20px;
  font-size: 0.75rem; color: #94a3b8;
  position: relative; z-index: 2;
}
.site-footer { /* kept for JS compat */
  text-align: center; padding: 16px 20px;
  font-size: 0.75rem; color: #94a3b8;
}

/* === RESPONSIVE === */
@media (max-width: 520px) {
  .auth-card { border-radius: 14px; margin: 0 4px; }
  .card-stripe { padding: 20px 22px 18px; }
  .card-body  { padding: 22px 20px; }
  .auth-header { padding: 12px 16px; }
  .auth-header-links .btn-header { display: none; }
}

@media (max-width: 400px) {
  .auth-main { padding: 16px 12px 32px; }
  .card-stripe h1 { font-size: 1.2rem; }
  .card-body { padding: 18px 16px; }
  .code-inputs input { width: 38px; height: 46px; font-size: 1.1rem; }
  .trust-row { gap: 12px; }
  .trust-item { font-size: 0.68rem; }
}
