/* ============================================================
   LIFE AT NCER — public "team page" shown before login. Uses
   the same design tokens as the redone About/Services pages
   (navy/blue/accent + Fraunces/DM Sans) for site-wide consistency.
   ============================================================ */
:root {
  --tl-navy:   #0f2557;
  --tl-blue:   #1e4a99;
  --tl-accent: #e8440a;
  --tl-gold:   #f0a500;
  --tl-light:  #f4f6fb;
  --tl-muted:  #6b7280;
  --tl-ff-head: 'Fraunces', serif;
  --tl-ff-body: 'DM Sans', sans-serif;
}

.team-life-hero,
.life-section,
.team-login-section {
  font-family: var(--tl-ff-body);
}

/* HERO */
.team-life-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem 0 4rem;
  text-align: center;
}
.team-life-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.team-life-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,20,48,.6) 0%, rgba(9,26,64,.78) 60%, rgba(9,20,48,.94) 100%);
}
.team-life-hero .container { position: relative; z-index: 1; }
.team-life-breadcrumb {
  list-style: none; display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin: 0 0 1.4rem; padding: 0;
}
.team-life-breadcrumb li { font-size: .8rem; color: rgba(255,255,255,.55); }
.team-life-breadcrumb li:first-child::after { content: '/'; margin-left: .5rem; color: rgba(255,255,255,.35); }
.team-life-breadcrumb li:last-child { color: rgba(255,255,255,.9); font-weight: 600; }
.team-life-breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; }
.team-life-breadcrumb a:hover { color: #fff; }
.team-life-eyebrow {
  display: inline-block;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tl-gold); margin-bottom: 1rem;
}
.team-life-hero h1 {
  font-family: var(--tl-ff-head);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700; color: #fff; letter-spacing: -.02em; line-height: 1.1;
  margin-bottom: 1rem;
}
.team-life-hero-sub {
  max-width: 560px; margin: 0 auto;
  font-size: 1.05rem; line-height: 1.75; color: rgba(255,255,255,.78);
}

/* LIFE WITH NCER */
.life-section { background: #fff; padding: 5.5rem 0; }
.life-header { max-width: 700px; margin: 0 auto 3.25rem; text-align: center; }
.life-eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tl-blue); margin-bottom: .6rem;
}
.life-header h2 {
  font-family: var(--tl-ff-head);
  font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 700;
  color: var(--tl-navy); letter-spacing: -.02em; margin-bottom: 1rem;
}
.life-header p { font-size: 1.02rem; line-height: 1.85; color: #555; }

.life-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.life-card {
  background: var(--tl-light);
  border-radius: 16px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.life-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(15,37,87,.14); }
.life-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--tl-blue) 0%, var(--tl-navy) 100%);
  color: #fff; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.1rem;
}
.life-card h3 {
  font-family: var(--tl-ff-head); font-size: 1.15rem; font-weight: 700;
  color: var(--tl-navy); margin-bottom: .6rem;
}
.life-card p { font-size: .92rem; line-height: 1.75; color: #666; }

.life-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.75rem;
}
.life-gallery-item {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 8px 24px rgba(15,37,87,.1);
  transition: transform .3s ease, box-shadow .3s ease;
}
.life-gallery-item:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(15,37,87,.18); }
.life-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.life-gallery-item:hover img { transform: scale(1.08); }

/* LOGIN */
.team-login-section { background: var(--tl-light); padding: 5.5rem 0; }
.team-login-card {
  max-width: 440px; margin: 0 auto;
  background: #fff; border-radius: 18px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15,37,87,.14);
}
.team-login-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--tl-accent) 0%, #a02c05 100%);
  color: #fff; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.4rem;
}
.team-login-card h3 {
  font-family: var(--tl-ff-head); font-size: 1.5rem; font-weight: 700;
  color: var(--tl-navy); margin-bottom: .65rem;
}
.team-login-card > p { font-size: .92rem; line-height: 1.7; color: #666; margin-bottom: 1.75rem; }
.team-login-error {
  background: #fee; color: #c0392b; font-size: .85rem;
  padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1.25rem;
}
.team-login-form { text-align: left; }
.team-login-field { margin-bottom: 1.1rem; }
.team-login-field label {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--tl-muted); margin-bottom: .4rem;
}
.team-login-field input {
  width: 100%; padding: .8rem 1rem;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-family: var(--tl-ff-body); font-size: .95rem;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.team-login-field input:focus {
  border-color: var(--tl-blue);
  box-shadow: 0 0 0 3px rgba(30,74,153,.12);
}
.team-login-submit { width: 100%; margin-top: .5rem; text-align: center; justify-content: center; }

@media (max-width: 900px) {
  .life-grid { grid-template-columns: 1fr 1fr; }
  .life-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .life-grid { grid-template-columns: 1fr; }
  .life-gallery { grid-template-columns: 1fr; }
  .team-login-card { padding: 2.25rem 1.5rem; }
}
