/* ═══════════════════════════════════════════════════════════
   OB FETISH — Auth Page (Login & Register)
   ═══════════════════════════════════════════════════════════ */

.obf-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(200,16,46,.14) 0%, transparent 60%);
}

.obf-auth-wrap {
  width: 100%;
  max-width: 460px;
}

/* Logo */
.obf-auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.obf-auth-logo a { text-decoration: none; }
.obf-auth-logo img { max-height: 52px; width: auto; }
.obf-auth-site-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.01em;
}

/* Tabs */
.obf-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.obf-auth-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: none;
  border: none;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.obf-auth-tab:hover { background: rgba(255,255,255,.06); color: var(--text-primary); }
.obf-auth-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.obf-auth-tab.active svg { color: var(--accent-primary); }

/* Panel */
.obf-auth-panel { display: none; }
.obf-auth-panel.active { display: block; }

.obf-auth-panel__header {
  text-align: center;
  margin-bottom: 28px;
}
.obf-auth-panel__header h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.obf-auth-panel__header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Alert */
.obf-auth-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.obf-auth-alert--error {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.3);
  color: #f87171;
}
.obf-auth-alert--success {
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.3);
  color: #4ade80;
}

/* Form */
.obf-auth-form { display: flex; flex-direction: column; gap: 18px; }

.obf-auth-field { display: flex; flex-direction: column; gap: 6px; }

.obf-auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.obf-auth-field__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.obf-auth-forgot {
  font-size: 12px;
  color: var(--accent-primary);
  text-decoration: none;
}
.obf-auth-forgot:hover { text-decoration: underline; }

.obf-auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.obf-auth-input-wrap > svg {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}
.obf-auth-input-wrap input {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 12px 44px;
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color .15s, background .15s;
  outline: none;
}
.obf-auth-input-wrap input:focus {
  border-color: var(--accent-primary);
  background: rgba(255,255,255,.08);
}
.obf-auth-input-wrap input::placeholder { color: var(--text-muted); }

.obf-auth-toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
.obf-auth-toggle-pw:hover { color: var(--text-primary); }

/* Password strength */
.obf-pw-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.obf-pw-strength__bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  overflow: hidden;
}
.obf-pw-strength__fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width .3s, background .3s;
}
.obf-pw-strength__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 64px;
  text-align: right;
}

/* Checkboxes */
.obf-auth-remember,
.obf-auth-tos {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}
.obf-auth-remember input,
.obf-auth-tos input { flex-shrink: 0; margin-top: 2px; accent-color: var(--accent-primary); }
.obf-auth-tos a { color: var(--accent-primary); text-decoration: none; }
.obf-auth-tos a:hover { text-decoration: underline; }

/* Submit button */
.obf-auth-submit {
  width: 100%;
  justify-content: center;
  padding: 14px !important;
  font-size: 15px !important;
  border-radius: 10px !important;
  gap: 8px;
  margin-top: 4px;
}

/* Bonus credits note */
.obf-auth-bonus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(200,16,46,.08);
  border: 1px solid rgba(200,16,46,.2);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #f87171;
  text-align: center;
}
.obf-auth-bonus svg { color: #f87171; flex-shrink: 0; }

/* Switch */
.obf-auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-secondary);
}
.obf-auth-switch-btn {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 4px;
  padding: 0;
  text-decoration: underline;
}
.obf-auth-switch-btn:hover { color: #f87171; }

/* Mobile */
@media (max-width: 480px) {
  .obf-auth-page { padding: 24px 12px; align-items: flex-start; padding-top: 48px; }
  .obf-auth-tab span { display: none; }
  .obf-auth-tab { padding: 10px; }
}
