:root{
  --csn-red: #b5131d;
  --csn-red-dark: #8e0f16;
  --csn-ink: #0e0f12;
  --csn-card: rgba(255,255,255,.92);
  --csn-bg: #f4f6f8;
}

html, body { height: 100%; }
body {
  background: var(--csn-bg);
  color: var(--csn-ink);
}

/* Fixed waiver banner (shown when team has not signed waiver) */
.has-waiver-banner{
  padding-top: 46px;
}
.waiver-banner{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  display: block;
  text-decoration: none;
  background: #ffb74d; /* orange */
  color: #1f2328;
  border-bottom: 1px solid rgba(0,0,0,.12);
  padding: 10px 0;
}
.waiver-banner:hover{
  color: #111;
  background: #ffab2e;
}
.waiver-banner i{
  opacity: .9;
}
.waiver-banner-cta{
  text-decoration: underline;
  font-weight: 700;
}
.waiver-banner-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.14);
  font-weight: 700;
  white-space: nowrap;
}

.csn-navbar{
  /* Light header to ensure the CitySide Netball logo stays crisp/legible */
  background: #efeff1;
  border-bottom: 3px solid var(--csn-red);
}

.navbar .brand-subtitle{
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--csn-ink);
  opacity: .9;
}

/* Keep header nav links readable on the light background */
.csn-navbar .nav-link{
  color: rgba(0,0,0,.78);
}
.csn-navbar .nav-link:hover{
  color: rgba(0,0,0,.92);
}
.csn-navbar .nav-link.active{
  color: rgba(0,0,0,.92);
  font-weight: 600;
}

.hero-wrap{
  position: relative;
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  padding: 40px 0;
  overflow: hidden;
  background: #0b0c10;
}

.hero-wrap::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: url('/assets/img/login_hero.png');
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.03);
  opacity: .9;
}

.hero-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.75));
}

.hero-content{
  position: relative;
  z-index: 2;
}

.login-card{
  background: var(--csn-card);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
  overflow: hidden;
}

.badge-csn{
  background: var(--csn-red);
}

.btn-csn{
  background: var(--csn-red);
  border-color: var(--csn-red);
  color: #fff;
}
.btn-csn:hover, .btn-csn:focus{
  background: var(--csn-red-dark);
  border-color: var(--csn-red-dark);
  color: #fff;
}

.form-control:focus{
  border-color: rgba(181,19,29,.35);
  box-shadow: 0 0 0 .25rem rgba(181,19,29,.2);
}

.csn-tile{
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transition: transform .12s ease, box-shadow .12s ease;
}
.csn-tile:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,.12);
}

.tile-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--csn-red);
}

.csn-footer{
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.06);
}
