/* Combat Studios — member login & registration (does not affect admin). */

:root {
  --cs-red: #8b1a1a;
  --cs-red-dark: #6e1414;
  --cs-green: #4a7c3e;
  --cs-green-dark: #3a6230;
  --cs-bg: #0a0a0a;
  --cs-surface: #141414;
  --cs-border: rgba(255, 255, 255, 0.12);
  --cs-text: #fafafa;
  --cs-muted: #a1a1aa;
}

body.member-auth {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--cs-bg);
  color: var(--cs-text);
}

body.member-auth a {
  color: var(--cs-green);
}

body.member-auth a:hover {
  color: #6bb85c;
}

.member-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5rem 1rem 4rem;
  box-sizing: border-box;
}

.member-auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto 1rem;
  padding: 0 0.25rem;
  box-sizing: border-box;
}

.member-auth-back {
  font-size: 0.875rem;
  color: var(--cs-muted) !important;
  text-decoration: none;
  flex-shrink: 0;
}

.member-auth-back:hover {
  color: var(--cs-text) !important;
}

.member-lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid var(--cs-border);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.member-lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  min-height: 36px;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cs-muted) !important;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.member-lang-switcher-btn:hover {
  color: var(--cs-text) !important;
  background: rgba(255, 255, 255, 0.06);
}

.member-lang-switcher-btn.is-active {
  background: var(--cs-red);
  color: #fff !important;
}

.member-lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.member-auth-logo-link {
  display: block;
  text-decoration: none;
}

.member-auth-logo-link:hover {
  opacity: 0.92;
}

.member-auth-logo-link .member-auth-logo {
  margin-bottom: 1.25rem;
}

.member-auth-card {
  width: 100%;
  max-width: 28rem;
  margin-top: 0.25rem;
  background: var(--cs-surface);
  border: 1px solid var(--cs-border);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.member-auth-card--wide {
  max-width: 32rem;
}

.member-auth-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-align: center;
}

.member-auth-logo {
  display: block;
  max-width: 180px;
  max-height: 120px;
  width: auto;
  height: auto;
  margin: 0 auto 1.25rem;
}

body.member-auth label {
  color: var(--cs-muted);
  font-size: 0.875rem;
}

body.member-auth .form-control {
  background: #1a1a1a;
  border: 1px solid var(--cs-border);
  color: var(--cs-text);
  border-radius: 0.375rem;
}

body.member-auth .form-control:focus {
  background: #1f1f1f;
  border-color: var(--cs-green);
  color: var(--cs-text);
  box-shadow: 0 0 0 0.2rem rgba(74, 124, 62, 0.25);
}

body.member-auth .btn-primary,
body.member-auth .btn-lg.btn-primary {
  background: linear-gradient(90deg, var(--cs-red), var(--cs-green));
  border: none;
  font-weight: 600;
  padding: 0.65rem 1rem;
}

body.member-auth .btn-primary:hover,
body.member-auth .btn-lg.btn-primary:hover {
  background: linear-gradient(90deg, var(--cs-red-dark), var(--cs-green-dark));
  border: none;
}

body.member-auth .alert-danger {
  background: rgba(139, 26, 26, 0.2);
  border-color: var(--cs-red);
  color: #fecaca;
}

body.member-auth .alert-success {
  background: rgba(74, 124, 62, 0.2);
  border-color: var(--cs-green);
  color: #d9f0d4;
}

.member-auth-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--cs-muted);
}

.member-auth-staff {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--cs-muted);
}

body.member-auth iframe,
.member-auth-rules {
  display: block;
  width: 100%;
  height: 240px;
  margin: 1rem 0;
  border: 1px solid var(--cs-border);
  border-radius: 0.375rem;
  background: #1a1a1a;
}

body.member-auth .form-check-label {
  color: var(--cs-muted);
}

body.member-auth .member-auth-rules-check {
  margin-bottom: 0;
}

body.member-auth .member-auth-submit {
  display: block;
  margin: 1rem auto 0;
  min-width: 11rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.member-buy-intro {
  color: var(--cs-muted);
  margin-bottom: 1.25rem;
}

.member-buy-signed-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--cs-muted);
  margin-bottom: 1rem;
}

.member-buy-ticket-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.member-buy-ticket {
  padding: 1.25rem;
  border: 1px solid var(--cs-border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
}

.member-buy-ticket--selected {
  border-color: var(--cs-red);
}

.member-buy-ticket h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  color: var(--cs-text);
}

.member-buy-ticket-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cs-text);
  margin-bottom: 0.75rem;
}

.member-buy-ticket-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--cs-muted);
}

.member-buy-summary {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cs-border);
}

.member-buy-change-package {
  margin-bottom: 1.25rem;
}

.member-buy-change-package label {
  font-size: 0.875rem;
  color: var(--cs-muted);
}

.member-buy-login-prompt {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.member-buy-login-form {
  margin-bottom: 1rem;
}

.member-buy-divider {
  border-color: var(--cs-border);
  margin: 1.5rem 0;
}

.member-buy-account-block {
  margin-top: 1rem;
}
