:root {
  --brand: #0c5f58;
  --brand-dark: #083b36;
  --accent: #f3a712;
  --bg-soft: #f6f9f8;
  --text: #1e2936;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background: #fff;
}

.home-page #intro,
.home-page #heroCarousel,
.home-page #heroCarousel .carousel-inner,
.home-page #heroCarousel .carousel-item {
  margin: 0;
  padding: 0;
}

a {
  transition: 0.25s;
}

/* Home page */
.home-page #header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(6, 23, 33, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 198, 214, 0.2);
}

.home-page #header .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-brand img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 420px;
}

.nav-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.nav-menu .login-link,
.logout-link {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 8px 16px;
}

#intro {
  margin-top: 0;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: #0a3340;
}

#heroCarousel,
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
  height: 100%;
  background: #0a3340;
}

#heroCarousel {
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  bottom: 0;
}

#heroCarousel .carousel-item {
  position: relative;
}

#heroCarousel .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, rgba(4, 25, 35, 0.82) 8%, rgba(7, 52, 63, 0.68) 48%, rgba(10, 89, 95, 0.46) 100%);
  z-index: 1;
}

#heroCarousel .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 42%, rgba(11, 33, 46, 0.22), rgba(5, 18, 28, 0.58));
  z-index: 1;
}

.carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#heroCarousel .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#heroCarousel .carousel-indicators li {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin: 0 5px;
  opacity: 0.72;
}

#heroCarousel .carousel-indicators .active {
  background-color: #f5ad19;
  opacity: 1;
}

#heroCarousel .carousel-item,
#heroCarousel .carousel-inner {
  overflow: hidden;
}

#heroCarousel .carousel-inner {
  width: 100%;
}

.hero-content {
  max-width: 940px;
  color: #fff;
  padding: 0 0 40px;
  text-align: center;
  transform: translateY(-42px);
}

#heroCarousel .carousel-item .hero-content {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

#heroCarousel .carousel-item.active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-content h1 {
  font-family: "Poppins", sans-serif;
  font-size: 52px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.9px;
  margin-bottom: 20px;
}

.hero-content p {
  max-width: 900px;
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 32px;
  color: rgba(236, 247, 251, 0.9);
  font-weight: 500;
}

.btn-main,
.btn-alt {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  margin-right: 10px;
  margin-bottom: 10px;
}

.btn-main {
  background: #f5ad19;
  color: #122130;
  box-shadow: 0 10px 22px rgba(245, 173, 25, 0.28);
}

.btn-alt {
  border: 1px solid rgba(232, 246, 255, 0.82);
  color: #fff;
  background: rgba(7, 27, 41, 0.28);
}

.btn-main:hover,
.btn-main:focus {
  color: #1f2430;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(243, 167, 18, 0.34);
}

.btn-alt:hover,
.btn-alt:focus {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

main section {
  padding: 80px 0;
}

.section-title {
  font-family: "Poppins", sans-serif;
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--brand-dark);
}

.section-subtitle {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
  color: #546071;
  line-height: 1.8;
}

.feature-card {
  background: #fff;
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(21, 40, 54, 0.1);
  height: 100%;
}

.card-media {
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card i {
  font-size: 30px;
  color: var(--brand);
  margin-bottom: 14px;
  display: inline-block;
}

.feature-card h4 {
  font-family: "Poppins", sans-serif;
  font-size: 21px;
  margin-bottom: 12px;
  color: #163247;
}

.feature-card p {
  margin-bottom: 0;
  color: #5a6878;
  line-height: 1.7;
}

.bg-soft {
  background: var(--bg-soft);
}

.contact-wrap {
  background: linear-gradient(125deg, #0d2f3a, #124f55);
  color: #fff;
  border-radius: 16px;
  padding: 34px;
}

.contact-wrap h4 {
  font-size: 24px;
  margin-bottom: 16px;
  font-family: "Poppins", sans-serif;
}

.contact-wrap p,
.contact-wrap a {
  color: #d8f0ef;
  line-height: 1.8;
  font-size: 16px;
}

.contact-wrap a {
  text-decoration: underline;
}

.footer {
  background: #091920;
  padding: 20px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

#userMenuItem {
  display: none;
  align-items: center;
  gap: 8px;
}

.user-info {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Login page */
.login-page {
  background: linear-gradient(140deg, rgba(7, 43, 49, 0.95), rgba(5, 28, 34, 0.88)), url('../img/sms.jpg') center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-shell {
  width: 100%;
  max-width: 980px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  display: flex;
}

.login-side {
  flex: 1;
  padding: 44px 36px;
  color: #fff;
  background: rgba(0, 0, 0, 0.14);
}

.login-side h1 {
  margin-bottom: 18px;
  font-family: "Poppins", sans-serif;
  font-size: 34px;
  line-height: 1.25;
}

.login-side p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  margin-bottom: 14px;
}

.login-side ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.login-side li {
  margin-bottom: 10px;
}

.form-side {
  width: 420px;
  background: rgba(6, 18, 27, 0.88);
  padding: 34px 28px;
  color: #fff;
}

.back-link {
  color: #8ad9d3;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 14px;
}

.form-title {
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  margin-bottom: 8px;
}

.form-subtitle {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  font-size: 14px;
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.input-row {
  display: flex;
}

.country-code,
.text-input,
.code-btn {
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.country-code {
  width: 92px;
  border-right: 0;
  border-radius: 10px 0 0 10px;
}

.country-code option {
  color: #111;
}

.text-input {
  flex: 1;
  border-radius: 0 10px 10px 0;
  padding: 0 12px;
  outline: none;
}

.code-input {
  border-radius: 10px 0 0 10px;
  border-right: 0;
}

.code-btn {
  width: 118px;
  border-radius: 0 10px 10px 0;
  font-weight: 700;
  cursor: pointer;
}

.consent-box {
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.7;
}

.consent-box a {
  color: #8ad9d3;
}

.error,
.success {
  font-size: 12px;
  margin-top: 6px;
  display: none;
}

.error {
  color: #ff9f9f;
}

.success {
  color: #98ffcd;
}

.submit-btn {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: #f3a712;
  color: #1d2a35;
  font-weight: 800;
  cursor: pointer;
}

/* Privacy page */
.privacy-page {
  background: linear-gradient(140deg, #11373f, #0a1f29);
  padding: 30px 14px;
  color: #29323d;
}

.privacy-box {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
}

.privacy-head {
  padding: 34px 24px;
  text-align: center;
  background: #f1f7f7;
}

.privacy-head h1 {
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 33px;
  color: #113842;
}

.privacy-head p {
  margin: 0;
  color: #51606f;
  line-height: 1.7;
}

.privacy-content {
  padding: 36px 42px;
}

.intro {
  padding: 20px;
  border-left: 4px solid #0c5f58;
  background: #f7fbfb;
  border-radius: 8px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.section {
  margin-bottom: 28px;
}

.section h2 {
  font-family: "Poppins", sans-serif;
  color: #13424a;
  font-size: 23px;
  margin-bottom: 12px;
}

.section p,
.section li {
  line-height: 1.8;
  color: #4e5f71;
}

.section ul {
  padding-left: 20px;
  margin-top: 8px;
}

.contact {
  background: #f7fbfb;
  border-radius: 12px;
  padding: 20px;
  margin-top: 26px;
}

.contact a {
  color: #0c5f58;
  font-weight: 700;
  text-decoration: none;
}

.back-btn {
  display: inline-block;
  margin-top: 22px;
  background: #0c5f58;
  color: #fff;
  padding: 10px 22px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 991px) {
  .hero-content {
    max-width: 760px;
    transform: translateY(-28px);
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content p {
    font-size: 18px;
    max-width: 520px;
  }

  .nav-menu {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .login-shell {
    flex-direction: column;
  }

  .form-side {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .home-page #header .container-fluid {
    flex-direction: column;
    gap: 12px;
  }

  .site-brand img {
    height: 42px;
  }

  #intro {
    margin-top: 0;
    height: 100vh;
  }

  #heroCarousel {
    top: 104px;
  }

  #heroCarousel,
  #heroCarousel .carousel-inner,
  #heroCarousel .carousel-item,
  #heroCarousel .container {
    height: 100%;
  }

  .hero-content h1 {
    font-size: 34px;
    letter-spacing: -0.3px;
  }

  .hero-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 22px;
  }

  .hero-content {
    max-width: 100%;
    transform: translateY(-12px);
  }

  .btn-main,
  .btn-alt {
    font-size: 15px;
    padding: 10px 18px;
  }

  .privacy-content {
    padding: 24px 20px;
  }

  .privacy-head h1 {
    font-size: 27px;
  }
}
