/* CLUBi-ERS v1.0.0 — Premium Emergency Theme
   Palette: Obsidian / Carbon / Emergency Red / Metallic Silver
   PHP-independent presentation layer. Existing application logic is untouched. */
:root {
  --ers-bg: #090a0d;
  --ers-bg2: #0e1014;
  --ers-sidebar: #08090c;
  --ers-panel: #14171d;
  --ers-panel2: #1a1e25;
  --ers-panel3: #20252d;
  --ers-red: #f20d19;
  --ers-red-dark: #bd0710;
  --ers-red-soft: rgba(242, 13, 25, 0.13);
  --ers-white: #f7f8fa;
  --ers-silver: #bfc3c8;
  --ers-muted: #9299a3;
  --ers-dim: #69717d;
  --ers-line: rgba(255, 255, 255, 0.1);
  --ers-line-strong: rgba(255, 255, 255, 0.16);
  --ers-green: #27c780;
  --ers-amber: #f2b544;
  --ers-radius: 17px;
  --ers-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
* {
  box-sizing: border-box;
}
html {
  background: var(--ers-bg);
}
body {
  margin: 0;
  background:
    radial-gradient(
      circle at 82% 0%,
      rgba(242, 13, 25, 0.055),
      transparent 27%
    ),
    var(--ers-bg) !important;
  color: var(--ers-white) !important;
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif !important;
}
a {
  color: #ff4b55;
  transition:
    color 0.18s,
    background 0.18s,
    border-color 0.18s;
}
a:hover {
  color: #fff;
}
h1,
h2,
h3,
h4,
strong,
b {
  color: var(--ers-white);
}
p {
  color: var(--ers-muted);
}
label {
  color: var(--ers-silver) !important;
}
small,
.muted,
.small-note {
  color: var(--ers-muted);
}
.eyebrow,
.side-label,
.subtle-tag {
  color: var(--ers-silver) !important;
  font-weight: 900 !important;
  letter-spacing: 0.17em !important;
}
.eyebrow.red {
  color: var(--ers-red) !important;
}

/* Authentication and registration */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(242, 13, 25, 0.18), transparent 31%),
    radial-gradient(
      circle at 92% 88%,
      rgba(191, 195, 200, 0.08),
      transparent 30%
    ),
    #08090c !important;
  color: var(--ers-white) !important;
}
.auth-shell {
  width: min(1180px, calc(100% - 36px)) !important;
  min-height: 600px !important;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border: 1px solid var(--ers-line-strong) !important;
  border-radius: 26px !important;
  overflow: hidden !important;
  background: var(--ers-panel) !important;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.62) !important;
}
.auth-brand {
  position: relative;
  overflow: hidden;
  padding: 58px !important;
  color: #fff !important;
  background:
    radial-gradient(
      circle at 92% 88%,
      rgba(242, 13, 25, 0.18),
      transparent 34%
    ),
    linear-gradient(145deg, #1b1e25, #0b0d11) !important;
}
.auth-brand:after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -190px;
  bottom: -235px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 35px rgba(255, 255, 255, 0.025),
    0 0 0 75px rgba(255, 255, 255, 0.014);
  pointer-events: none;
}
.brand-mark {
  color: #fff !important;
  font-family: Manrope, Inter, sans-serif !important;
  font-size: 44px !important;
  font-weight: 1000 !important;
  font-style: italic !important;
  letter-spacing: -0.075em !important;
}
.brand-mark span {
  color: var(--ers-red) !important;
}
.auth-brand .eyebrow {
  color: var(--ers-silver) !important;
}
.auth-brand h1 {
  color: #fff !important;
  font-size: clamp(40px, 5vw, 66px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.055em !important;
  font-weight: 950 !important;
}
.auth-brand h1:after {
  background: var(--ers-red) !important;
}
.auth-brand .muted {
  color: #b9bec7 !important;
}
.brand-rule {
  background: var(--ers-line-strong) !important;
}
.auth-brand small {
  color: var(--ers-silver) !important;
}
.auth-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px !important;
  background: linear-gradient(145deg, #171a20, #101216) !important;
  color: var(--ers-white) !important;
}
.status-line {
  color: var(--ers-silver) !important;
  font-weight: 900 !important;
}
.pulse,
.system-status i {
  background: var(--ers-green) !important;
  box-shadow: 0 0 0 4px rgba(39, 199, 128, 0.13) !important;
}
.auth-card h2 {
  color: #fff !important;
  font-weight: 950 !important;
  letter-spacing: -0.05em !important;
}
.auth-card .muted {
  color: var(--ers-muted) !important;
}
.auth-card label {
  color: var(--ers-silver) !important;
}
.auth-card input,
.form-shell input,
.form-shell select {
  min-height: 50px;
  background: #0d0f13 !important;
  color: #f7f8fa !important;
  border: 1px solid var(--ers-line-strong) !important;
  border-radius: 11px !important;
}
.auth-card input::placeholder,
.form-shell input::placeholder {
  color: #727a85 !important;
}
.auth-card input:focus,
.form-shell input:focus,
.form-shell select:focus,
input:focus,
select:focus {
  border-color: var(--ers-red) !important;
  box-shadow: 0 0 0 3px rgba(242, 13, 25, 0.15) !important;
  outline: none;
}
.auth-card a,
.small-note a {
  color: #ff4b55 !important;
  font-weight: 850;
}
.form-shell {
  width: min(720px, 100%);
  background: linear-gradient(145deg, #171a20, #101216) !important;
  color: var(--ers-white) !important;
  border: 1px solid var(--ers-line);
  border-radius: 20px !important;
  padding: 42px !important;
  box-shadow: var(--ers-shadow) !important;
}
.form-shell h1 {
  color: #fff !important;
}
.back-link {
  color: var(--ers-silver) !important;
}

/* Application shell */
.app-shell {
  min-height: 100vh;
  background: var(--ers-bg) !important;
  color: var(--ers-white) !important;
}
.sidebar {
  width: 250px;
  background: linear-gradient(180deg, #08090c, #101217) !important;
  color: #fff !important;
  border-right: 1px solid var(--ers-line) !important;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.24);
}
.brand-lockup {
  border-bottom: 1px solid var(--ers-line) !important;
}
.brand-lockup small {
  color: var(--ers-silver) !important;
}
.side-label {
  color: #727b87 !important;
}
.nav-link {
  color: #aeb4be !important;
  border-radius: 11px !important;
}
.nav-link:hover,
.nav-link.active {
  background: linear-gradient(
    100deg,
    rgba(242, 13, 25, 0.17),
    rgba(255, 255, 255, 0.035)
  ) !important;
  color: #fff !important;
}
.nav-link.active {
  box-shadow: inset 3px 0 var(--ers-red) !important;
}
.sidebar-bottom {
  border-top-color: var(--ers-line) !important;
}
.user-chip {
  border-top: 1px solid var(--ers-line) !important;
}
.user-chip b {
  color: #fff !important;
}
.user-chip small {
  color: var(--ers-muted) !important;
}
.avatar {
  background: linear-gradient(145deg, #ff303b, #b9000b) !important;
  color: #fff;
}

/* Main workspace */
.main-content {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 38px clamp(20px, 4vw, 60px) !important;
  background:
    radial-gradient(
      circle at 95% 2%,
      rgba(242, 13, 25, 0.045),
      transparent 25%
    ),
    #0d0f13 !important;
  color: var(--ers-white) !important;
}
.topbar {
  background: transparent !important;
  border: 0 !important;
}
.topbar h1 {
  color: #fff !important;
  font-weight: 950 !important;
  letter-spacing: -0.055em !important;
}
.topbar .eyebrow {
  color: var(--ers-silver) !important;
}
.system-status {
  color: var(--ers-silver) !important;
}
.date-label {
  color: var(--ers-muted) !important;
}
.welcome-panel {
  border: 1px solid var(--ers-line-strong) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(255, 255, 255, 0.09),
      transparent 27%
    ),
    radial-gradient(
      circle at 88% 100%,
      rgba(242, 13, 25, 0.17),
      transparent 35%
    ),
    linear-gradient(112deg, #111319, #292d36) !important;
  color: #fff !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35) !important;
}
.welcome-panel h2 {
  color: #fff !important;
  font-weight: 950 !important;
}
.welcome-panel h2 em {
  color: #ff3c48 !important;
}
.welcome-panel p {
  color: #c0c5ce !important;
}
.welcome-symbol {
  color: rgba(255, 255, 255, 0.12) !important;
}
.section-heading h3 {
  color: #fff !important;
  font-weight: 900 !important;
}
.section-heading p,
.subtle-tag {
  color: var(--ers-muted) !important;
}

/* Cards, panels and notices */
.stat-card,
.content-card,
.panel,
.form-card {
  background: linear-gradient(145deg, #191c22, #12151a) !important;
  border: 1px solid var(--ers-line) !important;
  border-radius: var(--ers-radius) !important;
  color: var(--ers-white) !important;
  box-shadow: var(--ers-shadow) !important;
}
.stat-card {
  position: relative;
  overflow: hidden;
}
.stat-card:after {
  content: "";
  position: absolute;
  right: -35px;
  top: -45px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
}
.stat-card small {
  color: var(--ers-muted) !important;
}
.stat-card strong {
  color: #fff !important;
  font-weight: 950 !important;
}
.stat-foot {
  color: #8f97a2 !important;
}
.stat-icon {
  background: #272b33 !important;
  color: var(--ers-silver) !important;
}
.stat-card.accent .stat-icon {
  background: var(--ers-red-soft) !important;
  color: #ff4b55 !important;
}
.notice-panel {
  background: linear-gradient(
    110deg,
    rgba(242, 13, 25, 0.1),
    #171a20
  ) !important;
  border: 1px solid rgba(242, 13, 25, 0.28) !important;
  border-left: 4px solid var(--ers-red) !important;
  color: #fff !important;
}
.notice-panel b {
  color: #fff !important;
}
.notice-panel p {
  color: #aeb5bf !important;
}
.notice-icon {
  background: var(--ers-red-soft) !important;
  color: #ff4b55 !important;
}
.success-panel {
  background: rgba(39, 199, 128, 0.1) !important;
  border: 1px solid rgba(39, 199, 128, 0.25) !important;
  color: #a8f0ce !important;
}
.success-panel b,
.success-panel p {
  color: #c9f6df !important;
}
.alert {
  background: rgba(242, 13, 25, 0.12) !important;
  border: 1px solid rgba(242, 13, 25, 0.34) !important;
  color: #ff9ba1 !important;
}
.footer {
  color: #747d88 !important;
}

/* Inputs and controls */
input,
select,
textarea {
  background: #0d1015 !important;
  color: #f4f5f7 !important;
  border: 1px solid var(--ers-line-strong) !important;
  border-radius: 9px !important;
}
input::placeholder,
textarea::placeholder {
  color: #737b86 !important;
}
select option {
  background: #15181e;
  color: #fff;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--ers-red) !important;
  box-shadow: 0 0 0 3px rgba(242, 13, 25, 0.13) !important;
  outline: none;
}
.btn {
  border-radius: 9px !important;
  font-weight: 850 !important;
  transition:
    transform 0.15s,
    filter 0.15s;
}
.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(110deg, #ff1825, #c9000d) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 25px rgba(242, 13, 25, 0.22) !important;
}
.btn-outline {
  background: #20242b !important;
  color: #f3f4f6 !important;
  border: 1px solid var(--ers-line-strong) !important;
}
.btn-small {
  background: #303640 !important;
  color: #fff !important;
  border: 1px solid var(--ers-line) !important;
}

/* Tables and status labels */
.table-wrap {
  border-radius: 10px;
}
table {
  border-collapse: collapse !important;
}
table th {
  color: #9da5af !important;
  background: #1b1f26 !important;
  border-bottom: 1px solid var(--ers-line-strong) !important;
  font-size: 9px !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase;
}
table td {
  color: #c4c9d1 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065) !important;
  background: transparent !important;
}
table tr:hover td {
  background: rgba(255, 255, 255, 0.025) !important;
}
table td b {
  color: #fff !important;
}
table td small {
  color: #858e99 !important;
}
.status {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.status-active {
  background: rgba(39, 199, 128, 0.13) !important;
  color: #68dfa8 !important;
}
.status-pending {
  background: rgba(242, 181, 68, 0.13) !important;
  color: #f2c56e !important;
}
.status-suspended,
.status-rejected {
  background: rgba(242, 13, 25, 0.14) !important;
  color: #ff7b83 !important;
}
.status-form select {
  background: #101319 !important;
  color: #fff !important;
}

/* Utility details */
hr {
  border: 0;
  border-top: 1px solid var(--ers-line);
}
::selection {
  background: rgba(242, 13, 25, 0.35);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--ers-red) !important;
  outline-offset: 2px;
}
@media (max-width: 900px) {
  .sidebar {
    width: 205px;
  }
  .main-content {
    padding: 28px 22px !important;
  }
}
@media (max-width: 800px) {
  .auth-shell {
    grid-template-columns: 1fr !important;
  }
  .auth-brand {
    padding: 34px !important;
    min-height: 290px;
  }
  .auth-card {
    padding: 34px !important;
  }
}
@media (max-width: 650px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    width: 100%;
    padding: 15px;
    display: block;
  }
  .brand-lockup {
    padding: 0 5px 12px !important;
  }
  .brand-lockup .brand-mark {
    font-size: 27px !important;
  }
  .side-label {
    display: none;
  }
  .sidebar > .nav-link {
    display: inline-flex;
    padding: 9px 10px !important;
    margin-top: 10px;
  }
  .sidebar-bottom {
    display: none;
  }
  .main-content {
    padding: 22px 15px !important;
  }
  .topbar {
    align-items: flex-start;
  }
  .topbar-right {
    display: none;
  }
  .welcome-panel {
    padding: 25px 22px;
  }
  .welcome-panel h2 {
    font-size: 26px;
  }
  .welcome-symbol {
    display: none;
  }
  .stats-grid {
    gap: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-card {
    padding: 15px;
  }
  .stat-card strong {
    font-size: 25px;
  }
  .form-shell {
    padding: 26px 20px !important;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .auth-shell {
    width: 100% !important;
    border-radius: 18px !important;
  }
  .auth-brand h1 {
    font-size: 34px !important;
    margin: 35px 0 12px;
  }
  .brand-rule {
    margin-top: 28px;
  }
  .auth-card {
    padding: 30px 24px !important;
  }
  .inline-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .inline-form .btn {
    grid-column: 1/-1;
  }
}

/* =========================================================
   CLUBi ERS — PREMIUM DARK LOGIN THEME
   PHP 7.4 compatible | CSS only
   Applies to login page only
========================================================= */

.auth-page {
  min-height: 100vh;
  padding: 30px;
  background:
    radial-gradient(
      ellipse at 10% 15%,
      rgba(242, 13, 24, 0.16),
      transparent 38%
    ),
    radial-gradient(
      ellipse at 90% 85%,
      rgba(242, 169, 0, 0.07),
      transparent 35%
    ),
    #090a0d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-shell {
  width: min(1100px, 100%);
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 25px;
  background: #14171c;
  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.65),
    0 0 45px rgba(242, 13, 24, 0.06);
}

/* LEFT BRAND PANEL */
.auth-brand {
  position: relative;
  overflow: hidden;
  padding: 65px 55px;
  color: #fff;
  background:
    radial-gradient(
      circle at 85% 85%,
      rgba(242, 13, 24, 0.18),
      transparent 40%
    ),
    linear-gradient(145deg, #191c22 0%, #101216 65%, #1a1013 100%);
}

.auth-brand:before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -190px;
  bottom: -210px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(255, 255, 255, 0.025),
    0 0 0 58px rgba(255, 255, 255, 0.018),
    0 0 0 90px rgba(242, 13, 24, 0.025);
  pointer-events: none;
}

.auth-brand:after {
  content: "ERS";
  position: absolute;
  right: 38px;
  bottom: 25px;
  font-size: 95px;
  line-height: 1;
  font-weight: 1000;
  font-style: italic;
  letter-spacing: -8px;
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.brand-mark {
  position: relative;
  z-index: 1;
  font-size: 42px;
  font-weight: 1000;
  letter-spacing: -3px;
  color: #fff;
  font-style: italic;
}

.brand-mark span {
  color: #f20d18;
}

.auth-brand .eyebrow {
  position: relative;
  z-index: 1;
  color: #b9bec6;
  font-size: 10px;
  letter-spacing: 2px;
}

.auth-brand h1 {
  position: relative;
  z-index: 1;
  margin: 85px 0 22px;
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -2px;
  color: #fff;
}

.auth-brand h1:after {
  content: "";
  display: block;
  width: 70px;
  height: 5px;
  margin-top: 27px;
  border-radius: 5px;
  background: linear-gradient(90deg, #f20d18, #bd0710);
}

.auth-brand .muted {
  position: relative;
  z-index: 1;
  max-width: 340px;
  color: #aeb4bd;
  font-size: 14px;
  line-height: 1.8;
}

.brand-rule {
  position: relative;
  z-index: 1;
  height: 1px;
  margin-top: 85px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
}

.auth-brand small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 18px;
  color: #929aa5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2.3px;
}

/* RIGHT LOGIN PANEL */
.auth-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 65px 62px;
  background: linear-gradient(145deg, #171a20, #101216 75%);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.status-line {
  display: flex;
  align-items: center;
  margin-bottom: 35px;
  color: #c0c5cd;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.7px;
}

.pulse {
  width: 8px;
  height: 8px;
  margin-right: 11px;
  background: #29c58a;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(41, 197, 138, 0.12);
}

.auth-card h2 {
  margin-bottom: 9px;
  color: #fff;
  font-size: 35px;
  letter-spacing: -1.5px;
}

.auth-card > .muted {
  color: #929aa5;
  font-size: 14px;
}

.auth-card form {
  margin-top: 34px;
}

.auth-card label {
  display: block;
  margin: 20px 0 9px;
  color: #c4c9d1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.auth-card input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  color: #fff;
  background: #0d0f13;
  border: 1px solid #343941;
  border-radius: 10px;
  font-size: 13px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.auth-card input::placeholder {
  color: #737b87;
}

.auth-card input:hover {
  border-color: #555d68;
}

.auth-card input:focus {
  outline: none;
  color: #fff;
  background: #111419;
  border-color: #f20d18;
  box-shadow: 0 0 0 4px rgba(242, 13, 24, 0.12);
}

/* SIGN IN BUTTON */
.auth-card .btn-primary {
  width: 100%;
  height: 54px;
  margin-top: 28px;
  justify-content: center;
  gap: 22px;
  color: #fff;
  background: linear-gradient(110deg, #f20d18, #bd0710);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(242, 13, 24, 0.2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.auth-card .btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(110deg, #ff2832, #d90813);
  box-shadow: 0 15px 35px rgba(242, 13, 24, 0.32);
}

.auth-card .btn-primary span {
  font-size: 18px;
}

/* REGISTRATION LINK */
.auth-card .small-note {
  margin-top: 25px;
  color: #858d98;
  font-size: 12px;
}

.auth-card .small-note a {
  color: #ff3943;
  font-weight: 900;
}

.auth-card .small-note a:hover {
  color: #ff777e;
  text-decoration: underline;
}

/* ERROR MESSAGE */
.auth-card .alert {
  color: #ff9da2;
  background: rgba(242, 13, 24, 0.1);
  border: 1px solid rgba(242, 13, 24, 0.3);
  border-radius: 9px;
}

/* RESPONSIVE */
@media (max-width: 850px) {
  .auth-shell {
    grid-template-columns: 1fr;
    max-width: 540px;
  }

  .auth-brand {
    padding: 40px;
  }

  .auth-brand h1 {
    margin-top: 45px;
    font-size: 38px;
  }

  .brand-rule {
    margin-top: 35px;
  }

  .auth-card {
    padding: 42px 40px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
}

@media (max-width: 480px) {
  .auth-page {
    padding: 14px;
  }

  .auth-shell {
    border-radius: 17px;
  }

  .auth-brand {
    padding: 30px 25px;
  }

  .auth-brand h1 {
    margin-top: 35px;
    font-size: 34px;
  }

  .auth-card {
    padding: 35px 25px;
  }

  .auth-card h2 {
    font-size: 29px;
  }
}
