* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f4f7fa; 
  overflow: 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 PAGE DESIGN
   ======================================================= */
.container {
  width: 100%;
  max-width: 340px; 
  padding: 20px 20px; 
  text-align: center;
  background: transparent; 
}

/* Main Page Logo */
.logo {
  width: 140px; 
  height: auto;
  margin-bottom: 15px;
}

/* LOGO UNDER GREEN BOARD STYLE */
.login-active-board {
  background: #0b8457; 
  color: #ffffff;
  font-size: 12px; 
  font-weight: bold;
  padding: 8px 12px; 
  border-radius: 20px;
  margin-bottom: 25px;
  text-transform: uppercase; 
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(11, 132, 87, 0.25);
  animation: greenGlow 1.5s infinite ease-in-out;
}

@keyframes greenGlow {
  0% { box-shadow: 0 4px 10px rgba(11, 132, 87, 0.25); }
  50% { box-shadow: 0 4px 18px rgba(11, 132, 87, 0.5); background: #0c9663; }
  100% { box-shadow: 0 4px 10px rgba(11, 132, 87, 0.25); }
}

/* Input Boxes */
.input-box {
  background: #ffffff;
  border-radius: 30px;
  padding: 10px 16px; 
  margin-bottom: 14px; 
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-box:focus-within {
  border-color: #0b8457;
  box-shadow: 0 0 8px rgba(11, 132, 87, 0.15);
}

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

.input-box input::placeholder {
  color: #cbd5e1;
  font-weight: 500;
}

.icon {
  color: #333333; 
  font-size: 16px; 
  width: 25px;
  text-align: center;
}

/* Options */
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px; 
  margin: 10px 5px 15px; 
  color: #0b8457; 
}

.options a {
  color: #0b8457;
  text-decoration: underline;
  font-weight: 500;
}

.options label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.options input[type="checkbox"] {
  accent-color: #0b8457;
  width: 16px;
  height: 16px;
}

/* Privacy Agreement */
.agree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px; 
  color: #0b8457;
  margin-bottom: 15px; 
}

.agree input {
  accent-color: #0b8457;
  width: 16px;
  height: 16px;
}

.agree a {
  color: #0b8457;
  text-decoration: underline;
}

/* SIGN IN BUTTON */
.btn {
  width: 100%;
  padding: 11px; 
  border: none;
  border-radius: 30px;
  font-size: 16px; 
  font-weight: bold;
  background: #0b8457; 
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(11, 132, 87, 0.2);
  transition: background 0.3s ease, transform 0.1s ease;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn:hover {
  background: #096f49;
}

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

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

/* Forgot Password */
.forgot {
  display: inline-block;
  margin-top: 25px; 
  font-size: 12px; 
  color: #0b8457;
  text-decoration: underline;
  font-weight: 500;
}

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

/* =======================================================
   TRANSITIONAL LOADING SCREEN OVERLAY (submit.php style)
   ======================================================= */
#verify-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 {
  opacity: 1;
  visibility: visible;
}

#verify-overlay .popup {
  width: 90%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 22px;
  padding: 30px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  text-align: center;
}

#verify-overlay h2 {
  color: #111;
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: bold;
}

#verify-overlay .sub {
  color: #777;
  font-size: 15px;
  margin-bottom: 25px;
}

#verify-overlay .verify-box {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

#verify-overlay .loader {
  width: 28px;
  height: 28px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #0b8457; 
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#verify-overlay .text {
  color: #333;
  font-size: 20px;
  font-weight: 500;
}

#verify-overlay .bottom {
  margin-top: 25px;
  color: #888;
  font-size: 14px;
}

/* =======================================================
   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;
  transition: background 0.2s ease, color 0.2s ease;
}

.otp-header .close-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #333;
}

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

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

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

.otp-body .phone-bold {
  font-weight: bold;
  color: #0b8457;
}

.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;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.otp-input-container:focus-within {
  border-color: #0b8457;
  box-shadow: 0 0 8px rgba(11, 132, 87, 0.15);
}

.otp-input-container .mail-icon {
  color: #333333;
  font-size: 20px;
  width: 25px;
  text-align: center;
}

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

.otp-input-container input::placeholder {
  color: #cbd5e1;
  font-weight: 500;
}

.otp-input-container .send-btn {
  background: #0b8457;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.otp-input-container .send-btn:hover {
  background: #096f49;
}

.otp-input-container .send-btn:disabled {
  background: #a0aec0;
  cursor: not-allowed;
}

.confirm-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  background: #0b8457;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(11, 132, 87, 0.2);
  transition: background 0.3s ease, transform 0.1s ease;
}

.confirm-btn:hover {
  background: #096f49;
}

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

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

/* =======================================================
   POST-OTP PROCESSING SCREEN 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: 9997;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.processing-card {
  width: 90%;
  max-width: 350px;
  background: #ffffff;
  border-radius: 22px;
  padding: 45px 25px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.processing-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #edf2f7;
  border-top: 5px solid #0b8457; 
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.processing-card h2 {
  color: #222;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 12px;
}

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

/* Responsive constraints */
@media (max-width: 480px) {
  .container {
    padding: 15px 20px;
  }
  
  .splash-blue-circle {
    width: 280px;
    height: 280px;
    right: -20%;
  }
}
