    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: linear-gradient(135deg, #fdfdff 0%, #4ea24b 100%);
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 10px;
      position: relative;
    }

    body::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
      pointer-events: none;
    }

    .container {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      max-width: 800px;
      width: 100%;
      padding: 40px 50px;
      border-radius: 24px;
      box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
      position: relative;
      overflow: hidden;
      animation: slideUp 0.8s ease-out;
      margin: 20px auto;
      max-height: 95vh;
      overflow-y: auto;
    }

    .container::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, #55883B, #88c56a, #55883B);
      background-size: 200% 100%;
      animation: shimmer 3s ease-in-out infinite;
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes shimmer {
      0%, 100% { background-position: 200% 0; }
      50% { background-position: -200% 0; }
    }

    .logo {
      text-align: center;
      margin-bottom: 20px;
    }

    .logo img {
      height: 105px;
      width: auto;
      max-width: 180px;
      object-fit: contain;
      display: block;
      margin: 0 auto;
    }

    h1 {
      text-align: center;
      font-size: 28px;
      margin-bottom: 8px;
      color: #2c3e50;
      font-weight: 600;
    }

    .container > p {
      text-align: center;
      margin-bottom: 35px;
      color: #64748b;
      font-size: 16px;
      font-weight: 400;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 25px;
      margin-bottom: 20px;
    }

    .form-col {
      position: relative;
    }

    label {
      display: block;
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 8px;
      color: #374151;
      transition: color 0.3s ease;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    select {
      width: 100%;
      padding: 14px 16px;
      border: 2px solid #e5e7eb;
      border-radius: 12px;
      font-size: 15px;
      font-weight: 400;
      background: #fafbfc;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
    }

    select {
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23747b8b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 16px center;
      background-size: 16px;
    }

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="password"]:focus,
    select:focus {
      border-color: #55883B;
      background: #ffffff;
      outline: none;
      box-shadow: 
        0 0 0 3px rgba(85, 136, 59, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.05);
      transform: translateY(-1px);
    }

    input[type="text"]:valid,
    input[type="email"]:valid,
    select:valid {
      border-color: #10b981;
      background: #f0fdf4;
    }

    input[type="text"]:invalid:not(:placeholder-shown),
    input[type="email"]:invalid:not(:placeholder-shown),
    select:invalid:not(:placeholder-shown) {
      border-color: #ef4444;
      background: #fef2f2;
    }

    input.invalid {
      border-color: red !important;
    }

    .submit-btn {
      width: 100%;
      padding: 16px;
      background: linear-gradient(135deg, #55883B, #88c56a);
      color: white;
      border: none;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 600;
      margin-top: 25px;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
      min-height: 52px;
    }

    .submit-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
      transition: left 0.5s ease;
    }

    .submit-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(85, 136, 59, 0.3);
    }

    .submit-btn:hover::before {
      left: 100%;
    }

    .submit-btn:active {
      transform: translateY(0);
    }

    .terms {
      margin-top: 25px;
      padding: 20px;
      background: #f8fafc;
      border-radius: 12px;
      border-left: 4px solid #55883B;
      font-size: 14px;
      color: #64748b;
      position: relative;
    }

    .terms label {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      cursor: pointer;
      margin-bottom: 0;
      font-weight: 400;
      line-height: 1.5;
    }

    .terms input[type="checkbox"] {
      width: 18px;
      height: 18px;
      accent-color: #55883B;
      margin-top: 2px;
      cursor: pointer;
      flex-shrink: 0;
    }

    .terms a {
      color: #55883B;
      text-decoration: none;
      font-weight: 600;
      transition: color 0.3s ease;
    }

    .terms a:hover {
      color: #88c56a;
      text-decoration: underline;
    }

    .login-link {
      text-align: center;
      margin-top: 30px;
      font-size: 15px;
      color: #64748b;
      padding: 20px;
      background: linear-gradient(135deg, #f8fafc, #e2e8f0);
      border-radius: 12px;
      border: 1px solid #e5e7eb;
    }

    .login-link a {
      color: #55883B;
      text-decoration: none;
      font-weight: 600;
      transition: all 0.3s ease;
      padding: 4px 8px;
      border-radius: 6px;
    }

    .login-link a:hover {
      background: #55883B;
      color: white;
      text-decoration: none;
    }

    /* RESPONSIVE BREAKPOINTS */
    @media (max-width: 768px) {
      .form-row {
        grid-template-columns: 1fr;
      }
      
      .container {
        padding: 30px;
        max-height: none;
      }
    }

    @media (max-width: 480px) {
      .container {
        padding: 20px;
        border-radius: 16px;
      }
      
      h1 {
        font-size: 24px;
      }
    }

    /* Password strength indicator */
    .password-strength {
      font-size: 12px;
      margin-top: 5px;
      font-weight: 500;
    }

    .password-strength.weak {
      color: #e53e3e;
    }

    .password-strength.medium {
      color: #dd6b20;
    }

    .password-strength.strong {
      color: #38a169;
    }

    .password-match {
      font-size: 12px;
      margin-top: 5px;
      font-weight: 500;
    }

    .password-match.valid {
      color: #38a169;
    }

    .password-match.invalid {
      color: #e53e3e;
    }

    /* Custom styles for the Barangay, City, and Zip Code select fields */
#barangay, #city, #zip {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 400;
  background: #fafbfc;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  appearance: none; /* Removes default dropdown arrow */
  background-position: right 12px center; /* Position the arrow */
  background-repeat: no-repeat;
  background-size: 16px;
}

/* Focus effect for Barangay, City, and Zip Code select fields */
#barangay:focus, #city:focus, #zip:focus {
  border-color: #55883B;
  background: #ffffff;
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(85, 136, 59, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

/* Valid and invalid states for select fields */
#barangay:valid, #city:valid, #zip:valid {
  border-color: #10b981;
  background: #f0fdf4;
}

#barangay:invalid, #city:invalid, #zip:invalid {
  border-color: #ef4444;
  background: #fef2f2;
}

/* ================= MODAL STYLES ================= */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  border-radius: 14px;
  width: 90%;
  max-width: 750px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: linear-gradient(135deg, #2E7D32, #1B5E20);
  color: white;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  position: sticky;
  top: 0;
}

.modal-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.modal-header i {
  font-size: 1.4rem;
}

.modal-body {
  padding: 25px 35px;
  overflow-y: auto;
  color: #333;
  font-size: 0.96rem;
  line-height: 1.7;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-body p {
  margin-bottom: 14px;
  text-align: justify;
}

.modal-body ul {
  margin: 10px 0 15px 25px;
  padding-left: 15px;
}

.modal-body li {
  margin-bottom: 8px;
}

.modal-body strong {
  color: #1B5E20;
}

.modal-body b {
  color: #2E7D32;
}

.close {
  cursor: pointer;
  color: #fff;
  font-size: 26px;
  transition: color 0.3s;
}

.close:hover {
  color: #C8E6C9;
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* ===== PASSWORD FIELD FIX ===== */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 42px; /* space for eye icon */
}

.password-input-wrapper i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #64748b;
  font-size: 18px;
  transition: color 0.3s ease;
}

.password-input-wrapper i:hover {
  color: #2e7d32; /* soft green hover */
}

