/* =====================================================================
   Society Management System - Homepage / Login Selection Page
   Font: Roboto (entire project uses Roboto only)
   ===================================================================== */

* {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #1f2937;
  background: #eaf2fb;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; }

/* ---------------- Hero / Background ---------------- */
.hero-wrap {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 24px 24px 40px;

  /* Overlay lightened further so the banner photo stays clear and sharp,
     while text on top still stays readable. The two background layers
     (gradient + photo) get their own size/position so the photo shows
     in FULL (no cropping) while the gradient still fills the whole box. */
  background-color: #eaf2fb;
  background-image:
    linear-gradient(rgba(255,255,255,0.08), rgba(255,255,255,0.08)),
    url('../images/banner.png');

  background-size: cover, 100% auto;
  background-position: center center, top center;
  background-repeat: no-repeat, no-repeat;

  display: flex;
  flex-direction: column;
}

/* Decorative building-skyline silhouette strips left & right (CSS-only, no stock photo) */
.hero-wrap::before,
.hero-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22%;
  min-width: 180px;
  background-repeat: repeat-x;
  background-position: bottom;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.20) 100%);
}
.hero-wrap::before { left: 0; }
.hero-wrap::after { right: 0; }

/* ---------------- Top bar badges ---------------- */
.top-bar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
}

.badge-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 18px;
  box-shadow: 0 6px 18px rgba(30, 60, 110, 0.10);
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-card .icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e7f0fd;
  color: #2f6fed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.badge-card .badge-title {
  font-weight: 700;
  font-size: 14px;
  color: #1f2937;
  line-height: 1.2;
}

.badge-card .badge-sub {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.2;
}

.lang-select {
  background: #ffffff;
  border-radius: 30px;
  padding: 10px 18px;
  box-shadow: 0 6px 18px rgba(30, 60, 110, 0.10);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
  cursor: pointer;
  border: none;
  font-family: 'Roboto', sans-serif;
}
.lang-select i:first-child { color: #2f6fed; font-size: 16px; }
.lang-select i:last-child { color: #9ca3af; font-size: 12px; }

/* ---------------- Brand / Hero center ---------------- */
.brand-center {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  margin: 18px auto 30px;
  padding: clamp(18px, 3vw, 30px) clamp(18px, 4vw, 30px);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;

  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 0;
  grid-template-areas:
    "logo title"
    "logo subtitle"
    "divider divider"
    "tagline tagline"
    "select select";
}

.brand-logo {
  grid-area: logo;
  align-self: center;
  width: clamp(42px, 9vw, 64px);
  height: clamp(42px, 9vw, 64px);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2f6fed;
  font-size: clamp(22px, 5vw, 36px);
}

.brand-title {
  grid-area: title;
  text-align: left;
  align-self: end;
  font-weight: 700;
  font-size: clamp(20px, 4.2vw, 34px);
  line-height: 1.15;
  margin: 0;
  color: #0f172a;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 3px rgba(255,255,255,0.9), 0 0 14px rgba(255,255,255,0.6);
}
.brand-title .accent { color: #1a56db; }

.brand-subtitle {
  grid-area: subtitle;
  text-align: center;
  align-self: start;
  font-size: clamp(12.5px, 2.4vw, 15px);
  color: #33415c;
  font-weight: 500;
  margin: 2px 0 0;
  text-shadow: 0 1px 3px rgba(255,255,255,0.9), 0 0 10px rgba(255,255,255,0.6);
}

.divider-row {
  grid-area: divider;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 16px auto 14px;
  max-width: 420px;
}
.divider-row .line {
  flex: 1;
  height: 1px;
  background: #b9c6da;
}
.divider-row .icon-circle-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2f6fed;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.brand-tagline {
  grid-area: tagline;
  font-size: clamp(13px, 2.2vw, 16px);
  color: #4b5568;
  font-weight: 500;
  margin: 0 0 16px;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(255,255,255,0.9), 0 0 10px rgba(255,255,255,0.6);
}

.select-login-heading {
  grid-area: select;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0;
  font-weight: 700;
  font-size: clamp(15px, 2.4vw, 19px);
  color: #16233d;
  text-shadow: 0 1px 3px rgba(255,255,255,0.9), 0 0 10px rgba(255,255,255,0.6);
}
.select-login-heading .arrow-line {
  width: 42px;
  height: 2px;
  background: #2f6fed;
  position: relative;
}
.select-login-heading .arrow-line::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f6fed;
  top: 50%;
  transform: translateY(-50%);
}
.select-login-heading .arrow-line.left::before { left: -2px; }
.select-login-heading .arrow-line.right::before { right: -2px; }

/* ---------------- Login Cards Grid ---------------- */
.login-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 4px;
}

.login-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 24px 26px;
  box-shadow: 0 10px 30px rgba(30, 60, 110, 0.10);
  border-top: 4px solid var(--accent, #2f6fed);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.login-card .card-icon-circle {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--accent-soft, #e7f0fd);
  color: var(--accent, #2f6fed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 16px;
}

.login-card .card-title {
  text-align: center;
  font-weight: 700;
  font-size: 21px;
  color: #16233d;
  margin: 0 0 4px;
}

.login-card .card-subtitle {
  text-align: center;
  font-size: 13px;
  color: #8a93a3;
  margin: 0 0 18px;
}

.login-card ul.feature-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  flex-grow: 1;
}
.login-card ul.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: #384153;
  margin-bottom: 11px;
  line-height: 1.35;
}
.login-card ul.feature-list li i {
  color: var(--accent, #2f6fed);
  font-size: 15px;
  margin-top: 2px;
  flex-shrink: 0;
}

.login-card .btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  background: var(--accent, #2f6fed);
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.login-card .btn-login:hover { filter: brightness(0.92); transform: translateY(-1px); }

.card-resident   { --accent: #2f6fed; --accent-soft: #e7f0fd; }
.card-admin      { --accent: #1fa15a; --accent-soft: #e4f7ec; }
.card-security   { --accent: #f2921c; --accent-soft: #fdedd9; }
.card-superadmin { --accent: #8b3fe0; --accent-soft: #f1e5fc; }

/* ---------------- Feature strip ---------------- */
.feature-strip {
  position: relative;
  z-index: 2;
  max-width: 1360px;
  width: 100%;
  margin: 30px auto 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(30, 60, 110, 0.08);
  padding: 26px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.feature-item .icon-circle-lg {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.feature-item:nth-child(1) .icon-circle-lg { background: #e7f0fd; color: #2f6fed; }
.feature-item:nth-child(2) .icon-circle-lg { background: #e4f7ec; color: #1fa15a; }
.feature-item:nth-child(3) .icon-circle-lg { background: #fdedd9; color: #f2921c; }
.feature-item:nth-child(4) .icon-circle-lg { background: #f1e5fc; color: #8b3fe0; }

.feature-item .feature-title {
  font-weight: 700;
  font-size: 14.5px;
  color: #16233d;
  margin: 0 0 2px;
}
.feature-item .feature-desc {
  font-size: 13px;
  color: #7a8494;
  line-height: 1.3;
}

/* ---------------- Footer ---------------- */
.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #16233d;
  margin-top: 30px;
  display: block;
  align-self: center;
  background: rgba(255,255,255,0.85);
  padding: 8px 20px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(30, 60, 110, 0.10);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* "Powered by" line added purely via CSS — no HTML edit needed */
.site-footer::after {
  content: "Powered by Tech Service Solutions";
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 400;
  color: #8a93a3;
}

.footer-powered {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  color: #7a8494;
  margin: 8px 0 0;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .login-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-wrap { padding: 16px 14px 30px; }
  .top-bar { flex-direction: row; align-items: center; justify-content: space-between; margin-bottom: 2px; }
  .login-grid { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: 1fr; padding: 20px 16px; }
  .brand-center {
    margin: -8px auto 22px;
    grid-template-columns: 1fr;
    justify-items: center;
    grid-template-areas:
      "logo"
      "title"
      "subtitle"
      "divider"
      "tagline"
      "select";
  }
  .brand-logo { margin: 0 0 6px; }
  .brand-title,
  .brand-subtitle {
    text-align: center;
  }
  .brand-subtitle {
    margin-bottom: 22px;
  }

  /* Secure Access badge becomes a small round icon-only button */
  .badge-card {
    position: relative;
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
    overflow: hidden;
  }
  .badge-card .badge-title,
  .badge-card .badge-sub {
    display: none !important;
  }
  .badge-card .icon-circle {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    font-size: 19px;
  }

  /* Language switcher becomes a small round icon-only button (no "English" text) */
  .lang-select {
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
    font-size: 0;
  }
  .lang-select i:first-child { font-size: 18px; }
  .lang-select i:last-child { display: none; }
}