/* =========================================================
   Soul Lounge – Auth Screen Styles
   Served statically from public/css/soul-auth.css
   ========================================================= */

/* ── Reset & base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --soul-red-dark:   #1a0404;
  --soul-red-mid:    #6b0f0f;
  --soul-red-light:  #9b1c1c;
  --soul-coral:      #e8635a;
  --soul-coral-hover:#d44f46;
  --soul-white:      #ffffff;
  --soul-input-bg:   #ffffff;
  --soul-label-color:#777777;
  --soul-placeholder:#aaaaaa;
  --soul-radius-input: 12px;
  --soul-radius-btn:   50px;
  --soul-radius-card:  20px;
  --soul-font:       'Poppins', sans-serif;
}

body.soul-auth-body {
  font-family: var(--soul-font);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background ──────────────────────────────────────────── */
.soul-bg {
  position: fixed;
  inset: 0;
  background-image: url('/img/background.jpeg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}

.soul-bg::after {
  content: '';
  position: absolute;
  inset: 0;
}

/* ── Page wrapper ────────────────────────────────────────── */
.soul-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 40px;
}

/* ── Logo ────────────────────────────────────────────────── */
.soul-logo-wrap {
  margin-bottom: 28px;
  text-align: center;
}

.soul-logo-wrap img {
  width: 160px;
  height: auto;
}

/* ── Heading ─────────────────────────────────────────────── */
.soul-heading {
  color: var(--soul-white);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  width: 100%;
  max-width: 360px;
  margin-bottom: 28px;
  text-align: center;
}

/* ── Form container ──────────────────────────────────────── */
.soul-form {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Input group ─────────────────────────────────────────── */
.soul-input-group {
  background: var(--soul-input-bg);
  border-radius: var(--soul-radius-input);
  padding: 10px 16px 12px;
  position: relative;
  border: 1.5px solid transparent;
  transition: border-color 0.2s;
}

.soul-input-group:focus-within {
  border-color: var(--soul-coral);
}

.soul-input-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--soul-label-color);
  text-transform: none;
  letter-spacing: 0.01em;
  margin-bottom: 3px;
}

.soul-input-group input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--soul-font);
  font-size: 14px;
  color: #222;
  padding: 0;
  padding-right: 36px;
}

.soul-input-group input::placeholder {
  color: var(--soul-placeholder);
}

/* ── Code input (6-digit reset code) ────────────────────── */
.soul-code-input {
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: 0.35em;
  text-align: center;
}

/* ── Password toggle ─────────────────────────────────────── */
.soul-pw-toggle {
  position: absolute;
  right: 14px;
  bottom: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #999;
  display: flex;
  align-items: center;
  line-height: 1;
}

.soul-pw-toggle:focus { outline: none; }
.soul-pw-toggle svg  { width: 20px; height: 20px; }

/* ── Validation errors ───────────────────────────────────── */
.soul-error {
  font-size: 12px;
  color: #ff6b6b;
  margin-top: 4px;
  padding-left: 4px;
}

/* ── Branch check-in badge (login screen) ────────────────── */
.soul-branch-badge {
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 10px;
  color: #6ee7b7;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  margin-bottom: 4px;
}

.soul-branch-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.soul-branch-badge strong {
  color: #fff;
}

.soul-branch-badge--warn {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

/* ── Success status (e.g. reset link sent) ───────────────── */
.soul-status {
  width: 100%;
  max-width: 360px;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 10px;
  color: #6ee7b7;
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 4px;
}

/* ── Remember me ─────────────────────────────────────────── */
.soul-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

/* When remember-me row also holds a forgot-password link */
.soul-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.soul-forgot-link {
  color: var(--soul-white);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  opacity: 0.85;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.soul-forgot-link:hover { opacity: 1; text-decoration: underline; }

.soul-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: var(--soul-coral);
  cursor: pointer;
  flex-shrink: 0;
}

.soul-remember label {
  color: var(--soul-white);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

/* ── Sign up button ──────────────────────────────────────── */
.soul-btn-signup {
  display: block;
  width: 100%;
  height: 52px;
  background: var(--soul-coral);
  color: var(--soul-white);
  font-family: var(--soul-font);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--soul-radius-btn);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.soul-btn-signup:hover  { background: var(--soul-coral-hover); }
.soul-btn-signup:active { transform: scale(0.98); }

/* ── Already have account ────────────────────────────────── */
.soul-login-link {
  text-align: center;
  margin-top: 14px;
}

.soul-login-link a {
  color: var(--soul-white);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.soul-login-link a:hover { opacity: 1; text-decoration: underline; }

/* ── Pricing card ────────────────────────────────────────── */
.soul-pricing-card {
  width: 100%;
  max-width: 360px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--soul-radius-card);
  padding: 18px 20px 16px;
  margin-top: 28px;
}

.soul-pricing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.soul-pricing-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.soul-dollar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.soul-dollar-icon svg {
  width: 22px;
  height: 22px;
  color: var(--soul-white);
}

.soul-pricing-title {
  color: var(--soul-white);
  font-size: 17px;
  font-weight: 600;
}

.soul-instagram-link {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 12px;
  transition: opacity 0.2s, transform 0.2s;
}

.soul-instagram-link:hover {
  opacity: 0.85;
  transform: scale(1.07);
}

.soul-instagram-icon {
  width: 44px;
  height: 44px;
  display: block;
}

.soul-pricing-body {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.soul-pricing-body p {
  color: var(--soul-white);
  font-size: 14px;
  font-weight: 500;
}

/* =========================================================
   Home Screen — Success / Dashboard
   ========================================================= */

/* ── Green checkmark circle ──────────────────────────────── */
.soul-checkmark-circle {
  width: 60px;
  height: 60px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.soul-checkmark-circle svg {
  width: 30px;
  height: 30px;
  color: #fff;
}

/* ── Red alert circle ────────────────────────────────────── */
.soul-alert-circle {
  width: 60px;
  height: 60px;
  background: var(--soul-coral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(232, 99, 90, 0.4);
}

.soul-alert-circle svg {
  width: 30px;
  height: 30px;
  color: #fff;
}

/* ── No-QR message text ──────────────────────────────────── */
.soul-no-qr-message {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
}

/* ── Welcome heading ─────────────────────────────────────── */
.soul-welcome-heading {
  color: var(--soul-white);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  width: 100%;
  max-width: 360px;
  margin-bottom: 20px;
}

/* ── Soul ID block ───────────────────────────────────────── */
.soul-id-label {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 8px;
}

.soul-id-card {
  background: var(--soul-white);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 360px;
  margin-bottom: 8px;
}

.soul-id-number {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.04em;
}

.soul-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #666;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  flex-shrink: 0;
}

.soul-copy-btn:hover { color: var(--soul-coral); }
.soul-copy-btn svg   { width: 22px; height: 22px; }

.soul-save-hint {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  text-align: center;
  margin-bottom: 28px;
}

/* ── Timer ───────────────────────────────────────────────── */
.soul-timer-wrap {
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.soul-timer-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.soul-timer-digits {
  display: flex;
  gap: 4px;
}

.soul-timer-digit {
  width: 38px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--soul-white);
  font-variant-numeric: tabular-nums;
  transition: background 0.2s;
}

.soul-timer-sep {
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  padding-bottom: 14px;
}

.soul-timer-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--soul-white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Copy toast ──────────────────────────────────────────── */
.soul-copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  z-index: 9999;
}

.soul-copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
