* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 45px;
  background: #f4f7fb; 
  overflow-x: hidden;
}

/* =======================================================
   SPLASH SCREEN DESIGN
   ======================================================= */
#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eef6f4 0%, #f3f7fa 50%, #fbf9f5 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-blue-circle {
  position: absolute;
  top: -10%;
  right: -25%;
  width: 380px;
  height: 380px;
  background: linear-gradient(135deg, #5d92f4, #4a7ee0);
  border-radius: 50%;
  z-index: 1;
}

.splash-container-box {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 320px;
  height: 320px;
  animation: zoomSmooth 1.6s ease;
}

.splash-card-bg {
  width: 290px;
  transform: rotate(-15deg); 
  filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.08));
}

.splash-logo-inside {
  position: absolute;
  width: 90px; 
  height: auto;
  transform: translate(0, -5px); 
  z-index: 3;
}

@keyframes zoomSmooth {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* =======================================================
   MAIN LOGIN CONTAINER
   ======================================================= */
.container {
  width: 100%;
  max-width: 360px; 
  padding: 20px 24px; 
  text-align: center;
  background: transparent; 
}

.logo {
  width: 140px; 
  height: auto;
  margin-top: 10px;
  margin-bottom: 35px;
}

.login-active-board {
  background: #00875a; 
  color: #ffffff;
  font-size: 12px; 
  font-weight: bold;
  padding: 9px 14px; 
  border-radius: 20px;
  margin-bottom: 24px;
  text-transform: uppercase; 
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 135, 90, 0.25);
  animation: greenGlow 1.5s infinite ease-in-out;
}

@keyframes greenGlow {
  0% { box-shadow: 0 4px 10px rgba(0, 135, 90, 0.25); }
  50% { box-shadow: 0 4px 18px rgba(0, 135, 90, 0.45); background: #019966; }
  100% { box-shadow: 0 4px 10px rgba(0, 135, 90, 0.25); }
}

/* Pill Input Boxes matching screenshot */
.custom-pill-input {
  background: #ffffff;
  border-radius: 40px;
  padding: 13px 22px; 
  margin-bottom: 16px; 
  display: flex;
  align-items: center;
  border: 1px solid #dce4ec;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-pill-input:focus-within {
  border-color: #00875a;
  box-shadow: 0 0 0 3px rgba(0, 135, 90, 0.12);
}

.custom-pill-input input {
  border: none;
  outline: none;
  background: none;
  width: 100%;
  font-size: 17px; 
  font-weight: 500;
  color: #1a202c;
  padding-left: 14px;
  letter-spacing: 0.3px;
}

.custom-pill-input input::placeholder {
  color: #a0aec0;
  font-weight: 400;
}

.icon-custom {
  color: #2d3748; 
  font-size: 22px; 
  width: 26px;
  text-align: center;
}

/* Options Row (Register left, Remember Me right) */
.options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin: 14px 6px 16px;
}

.link-underlined {
  color: #00875a;
  text-decoration: underline;
  font-weight: 500;
  font-size: 14px;
}

/* Circular Green Checkmark */
.custom-check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.custom-check-circle {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 10px;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.custom-check-label input:not(:checked) + .custom-check-circle {
  background: #cbd5e1;
  color: transparent;
}

.custom-check-label .label-text {
  color: #00875a;
  font-size: 14px;
  font-weight: 500;
}

/* Centered Agree Row */
.agree-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 22px;
}

/* Sign In Button */
.btn-signin {
  width: 100%;
  padding: 13px 20px; 
  border: none;
  border-radius: 50px;
  font-size: 17px; 
  font-weight: 500;
  background: #008d59; 
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 141, 89, 0.22);
  transition: background 0.2s ease, transform 0.1s ease;
  letter-spacing: 0.2px;
}

.btn-signin:hover {
  background: #007a4d;
}

.btn-signin:active {
  transform: scale(0.98);
}

.btn-signin:disabled {
  background: #a0aec0;
  cursor: not-allowed;
  box-shadow: none;
}

/* Forgot Password */
.forgot-wrapper {
  margin-top: 26px;
}

.forgot-link {
  font-size: 13.5px;
}

.version-label {
  position: fixed;
  bottom: 12px;
  right: 18px;
  color: #a0aec0;
  font-size: 11px;
  font-weight: bold;
  z-index: 10;
  pointer-events: none;
}

/* =======================================================
   TRANSITIONAL VERIFICATION & PROCESSING OVERLAYS
   ======================================================= */
#verify-overlay,
#processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f4f7fa; 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9995;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#verify-overlay.active,
#processing-overlay.active {
  opacity: 1;
  visibility: visible;
}

#verify-overlay .popup,
.processing-card {
  width: 90%;
  max-width: 350px;
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 24px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#verify-overlay h2,
.processing-card h2 {
  color: #111;
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 700;
}

#verify-overlay .sub,
.processing-card .processing-sub {
  color: #718096;
  font-size: 14px;
  line-height: 1.5;
}

.processing-spinner,
#verify-overlay .loader {
  width: 50px;
  height: 50px;
  border: 4px solid #edf2f7;
  border-top: 4px solid #00875a; 
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =======================================================
   OTP VERIFICATION MODAL OVERLAY
   ======================================================= */
#otp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#otp-modal.active {
  opacity: 1;
  visibility: visible;
}

.otp-card {
  background: #ffffff;
  width: 90%;
  max-width: 380px;
  border-radius: 22px;
  padding: 30px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#otp-modal.active .otp-card {
  transform: scale(1) translateY(0);
}

.otp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.otp-header h3 {
  font-size: 18px;
  font-weight: bold;
  color: #111;
}

.otp-header .close-btn {
  background: rgba(0, 0, 0, 0.04);
  border: none;
  font-size: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #888;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.otp-body {
  text-align: left;
}

.otp-body .instruction {
  color: #00875a;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 8px;
}

.otp-body .phone-display {
  color: #00875a;
  font-size: 14px;
  margin-bottom: 22px;
}

.otp-body .phone-bold {
  font-weight: bold;
}

.otp-input-container {
  background: #ffffff;
  border-radius: 30px;
  padding: 8px 8px 8px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
}

.otp-input-container input {
  border: none;
  outline: none;
  background: none;
  width: 100%;
  font-size: 16px;
  color: #333;
  padding-left: 10px;
}

.otp-input-container .send-btn,
.send-btn {
  background: #00875a;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

.confirm-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 30px;
  font-size: 17px;
  font-weight: bold;
  background: #00875a;
  color: #fff;
  cursor: pointer;
}

/* =======================================================
   REGISTER PAGE STYLES
   ======================================================= */
.register-body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f4f7fb;
  overflow-y: auto;
}

.register-container {
  width: 100%;
  max-width: 360px;
  padding: 30px 20px;
  margin: auto;
}

.register-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.register-back-link {
  position: absolute;
  left: 0;
  color: #00875a;
  font-size: 22px;
  text-decoration: none;
}

.register-title {
  color: #00875a;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.reg-input-box {
  background: #ffffff;
  border-radius: 40px;
  border: 1px solid #dce4ec;
  margin-bottom: 18px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
}

.reg-input-box input {
  border: none;
  outline: none;
  background: none;
  width: 100%;
  font-size: 16px;
  color: #333;
  padding-left: 10px;
}

.reg-input-box .reg-icon {
  color: #00875a;
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.phone-input-box .country-prefix {
  font-size: 15px;
  font-weight: 600;
  color: #00875a;
  margin-left: 8px;
}

.phone-input-box .prefix-sep {
  color: #cbd5e1;
  margin: 0 10px;
  font-weight: 300;
}

.reg-input-box.otp-box {
  justify-content: space-between;
  padding: 8px 8px 8px 18px;
}

.btn-register {
  width: 100%;
  margin-top: 25px;
  padding: 13px 20px;
  border: none;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 500;
  background: #008d59;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 141, 89, 0.22);
  transition: background 0.2s ease, transform 0.1s ease;
  letter-spacing: 0.2px;
}

.btn-register:hover {
  background: #007a4d;
}

.btn-register:active {
  transform: scale(0.98);
}
