/* Base Setup */
body {
  font-family: 'Noto Sans', sans-serif;
  background-color: #FFFFFF;
  margin: 0;
  padding: 0;
}

/* Container Layout */
.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 24px 16px 100px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Sections */
.section {
  margin-bottom: 32px;
}


/* Button Styles */
.button {
  width: 100%;
  max-width: 400px;
  height: 70px;
  margin: 20px auto;
  border-radius: 90px;
  font-weight: 700;
  font-size: 25px;
  line-height: 34px;
  font-family: 'Noto Sans', sans-serif;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* Primary Buttons */
.button.primary {
  background-color: #2F602F;
  border: 3px solid #2F602F;
  color: #FFFFFF;
}

.button.primary-alt {
  border: 3px solid #2F602F;
  color: #2F602F;
}

/* Secondary Buttons */
.button.secondary {
  background-color: #1A1A1A;
  color: #FFFFFF;
}

.button.secondary-alt {
  border: 3px solid #1A1A1A;
  color: #1A1A1A;
}

/* Tertiary Buttons */
.button.tertiary {
  background-color: #FADB4A;
  border: 3px solid #FFDB00;
  color: #1A1A1A;
}

.button.tertiary-alt {
  border: 3px solid #FADB4A;
  color: #1A1A1A;
}

/* Cancel Buttons */
.button.cancel {
  background-color: #AD2000;
  border: 3px solid #AD2000;
  color: #FFFFFF;
}

.button.cancel-alt {
  border: 3px solid #AD2000;
  color: #AD2000;
}

/* Headers and Titles */
.header {
  width: 100%;
  height: 75px;
  margin: 0 auto;
  background-color: #FFFFFF;
  border-bottom: 1px solid #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 24px;
  box-sizing: border-box;
}

.header-title {
  font-family: 'Noto Serif', serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 17px;
  color: #1A1A1A;
}

.header-title {
  text-decoration: none;
  color: #1A1A1A;
}

.header-user {
  font-weight: 700;
  font-size: 16px;
  line-height: 17px;
  color: #1A1A1A;
  text-align: right;
}

.header-user a {
  text-decoration: none;
  color: #1A1A1A;
}

a:hover {
  text-decoration: underline;
}

/* Link Buttons */
a.button {
  text-decoration: none;
}

/* Text Styles */
.headline-xl {
  font-weight: 700;
  font-size: 40px;
  line-height: 54px;
  color: #1A1A1A;
  margin: 20px 0;
}

.headline-sm {
  font-weight: 700;
  font-size: 24px;
  line-height: 38px;
  color: #1A1A1A;
  margin: 20px 0;
}

.headline-lg {
  font-weight: 700;
  font-size: 26px;
  line-height: 35px;
  color: #1A1A1A;
  margin-bottom: 12px;
}

.body-text {
  font-weight: 500;
  font-size: 20px;
  line-height: 27px;
  color: #1A1A1A;
  margin: 20px 0;
}

.text-red {
  color: #AD2000;
  font-weight: 700;
}

.body-text.warning {
  font-size: 16px;
}

.body-lg {
  font-weight: 700;
  font-size: 20px;
  line-height: 27px;
  color: #2F602F;
  text-decoration: underline;
  margin: 20px 0;
}

.text-block {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.caption {
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  color: #1A1A1A;
  margin: 20px 0;
}

.page-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 27px;
  color: #1A1A1A;
  margin: 10px 0;
}

/* Featured Card Blocks */
.featured-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #F4F4F4;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 12px;
}

.featured-card img {
  width: 45%;
  max-width: 185px;
  border-radius: 8px;
}

.featured-card .info {
  width: 50%;
  font-weight: 700;
  font-size: 20px;
  line-height: 27px;
  color: #1A1A1A;
  display: flex;
  align-items: center;
}

/* Bottom Navigation */
.navbar {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #1A1A1A;
  color: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  font-family: 'Noto Sans', sans-serif;
  font-size: 12px;
  z-index: 100;
}

.navbar i {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 30px;
  display: block;
  text-align: center;
  margin-bottom: 4px;
}

.navbar a {
  color: white;
  text-decoration: none;
  text-align: center;
}

.navbar-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.featured-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
}

.featured-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background-color: #f4f4f4;
  padding: 12px;
  border-radius: 12px;
}

.featured-item img {
  width: 100%;
  height: auto;
  margin-bottom: 12px; 
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.featured-text {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 27px;
  color: #1A1A1A;
}

/* Form Layout */
form {
  max-width: 440px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* FORMS */
/* Form Labels */
form label {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 27px;
  color: #1A1A1A;
  margin-bottom: 4px;
  display: block;
}

/* Input Fields */
form input[type="text"],
form input[type="email"],
form input[type="password"] {
  width: 100%;
  height: 53px;
  background: #F4F4F4;
  border: 3px solid #1A1A1A;
  padding: 12px;
  font-size: 18px;
  box-sizing: border-box;
}

/* Checkbox wrapper */
.form-checkbox {
  display: flex;
  align-items: baseline; /* aligns the checkbox better with text */
  gap: 12px;
}

.form-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: 3px solid #1A1A1A;
  background-color: #fff;
  border-radius: 0;
  cursor: pointer;
  position: relative;
  margin: 0;
}

.form-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #1A1A1A;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.form-checkbox label {
  font-family: 'Noto Sans', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 27px;
  color: #1A1A1A;
  cursor: pointer;
}

/* Login Button */
form button[type="submit"].button.primary {
  background-color: #2F602F;
  border: 3px solid #2F602F;
  border-radius: 90px;
  color: #fff;
  font-weight: 700;
  font-size: 25px;
  line-height: 34px;
  height: 70px;
  max-width: 400px;
  margin: 0 auto;
}

/* Account Info Text */
.form-info {
  font-family: 'Noto Sans', sans-serif;
  font-size: 20px;
  line-height: 27px;
  font-weight: 500;
  color: #1A1A1A;
  max-width: 440px;
  margin: 0 auto 20px auto;
  padding: 0 20px;
}

.form-info a {
  color: #2F602F;
  text-decoration: underline;
  font-weight: 700;
}

.form-info.warning {
  font-family: 'Noto Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 16px;
  margin: 20px 0;
}

.form-error {
  color: #AD2000;
  font-weight: 700;
  font-size: 16px;
  margin: 4px 0 12px;
}

.login-error {
  max-width: 316px;
  width: 100%;
}

.input-button-group {
  position: relative;
}

.input-button-group input[type="password"],
.input-button-group input[type="text"] {
  width: 100%;
  height: 53px;
  background: #F4F4F4;
  border: 3px solid #1A1A1A;
  padding: 12px 80px 12px 12px; /* ← right padding increased to make room */
  font-size: 18px;
  box-sizing: border-box;
}

.input-button-group button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Noto Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  background: none;
  border: none;
  color: #1A1A1A;
  cursor: pointer;
  padding: 0;
}

.input-delete-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.input-delete-group input[type="text"] {
  flex: 1;
}

.delete-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #AD2000;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}

/* Reset link */
.reset-link {
  font-family: 'Noto Sans', sans-serif;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: #1A1A1A;
  padding: 0 20px;
  max-width: 440px;
  margin: 20px auto 0 auto;
}

.reset-link a {
  color: #2F602F;
  text-decoration: underline;
  font-weight: 700;
}

/* Overlay */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(244, 244, 244, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Make visible */
.popup-overlay.active {
  display: flex;
}

/* Popup itself */
.popup-slideup {
  background: #FFFFFF;
  width: 100%;
  max-width: 440px;
  height: auto;
  box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.25);
  padding: 24px 20px 40px 20px;
  animation: fadeIn 0.3s ease-out;
  opacity: 0;
  transform: translateY(20px); /* soft lift */
  animation-fill-mode: forwards;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Close button */
.popup-close {
  background: none;
  border: none;
  font-size: 36px;
  font-weight: 900;
  color: #1A1A1A;
  position: absolute;
  top: 16px;
  right: 20px;
  cursor: pointer;
}

/* Title */
.popup-title {
  font-size: 26px;
  font-weight: 700;
  font-family: 'Noto Sans', sans-serif;
  color: #1A1A1A;
  margin-bottom: 24px;
}

/* Link List */
.popup-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popup-links li {
  margin: 12px 0;
}

.popup-links a {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #2F602F;
  text-decoration: underline;
}

/* dynamic content */
@media (min-width: 800px) {
  /* Scale container layout */
  .container {
    max-width: none;
    padding-bottom: 100px;
  }

  /* Featured list switches to grid */
  .featured-list {
    flex-direction: row;
    justify-content: center;
    gap: 32px;
  }

  .featured-item {
    flex: 0 1 calc(50% - 16px);
    max-width: 500px;
  }

  .featured-item img {
    object-fit: contain;
  }

  .featured-text {
    font-size: 22px;
    line-height: 30px;
  }

  /* Keep login form and fields narrow and centered */
  form,
  .form-info,
  .reset-link {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
}