@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

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

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Start from top to let the header extend naturally */
  background: #f4f5f8; 
  overflow-y: auto;
}




/* =======================================================
   MAIN LOGIN PAGE DESIGN
   ======================================================= */
.container {
  width: 100%;
  max-width: 420px;
  padding: 0 0 30px 0;
  text-align: center;
  background: transparent;
  display: flex;
  flex-direction: column;
}

/* Header Section with Dark Background and Diagonal Angle */
.header-card {
  background: linear-gradient(to bottom, #0e0e0e 0%, #151515 90%, #f4f5f8 100%);
  padding: 60px 20px 40px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%); /* Diagonal bottom effect */
  margin-bottom: 30px;
}

.brand-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Stylized gold dp logo */
.dp-logo-icon {
  font-family: 'Outfit', sans-serif;
  font-size: 72px;
  font-weight: 800;
  background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa7c11 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
  line-height: 1;
}

/* Stylized gold brand text */
.brand-title {
  margin-top: 10px;
  font-size: 26px;
  font-weight: 600;
  background: linear-gradient(to right, #ffe57f, #ffd54f, #ffb300);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

/* Form Styles and Rounded Border Boxes */
#ddpay-login-form {
  padding: 0 25px;
}

.input-box {
  background: #ffffff;
  border-radius: 12px; /* Smoother, less pill-shaped rounding */
  padding: 12px 18px; 
  margin-bottom: 18px; 
  display: flex;
  align-items: center;
  border: 1px solid #c8cbd0; /* Precise border style */
  box-shadow: none;
}

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

.input-box input::placeholder {
  color: #a0a5b0;
  font-weight: 400;
}

/* Phone input layout with prefix code */
.phone-input-box {
  display: flex;
  align-items: center;
}

.country-code {
  font-size: 16px;
  font-weight: 600;
  color: #111111;
  margin-right: 10px;
}

.separator {
  color: #d1d5db;
  font-size: 16px;
  margin-right: 12px;
  font-weight: 300;
}

/* Options / Remember Me / Agreement Section styling */
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px; 
  margin: 10px 5px 15px; 
  color: #555555; 
}

.options a {
  color: #555555;
  text-decoration: underline;
  font-weight: 400;
}

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

.options input[type="checkbox"],
.agree input[type="checkbox"] {
  accent-color: #2b66ff; /* Standard blue checkbox */
  width: 18px;
  height: 18px;
  border-radius: 50%; /* Circle checkboxes from image */
  appearance: none;
  border: 1px solid #ccc;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.options input[type="checkbox"]:checked,
.agree input[type="checkbox"]:checked {
  background-color: #2b66ff;
  border-color: #2b66ff;
}

.options input[type="checkbox"]:checked::before,
.agree input[type="checkbox"]:checked::before {
  content: '✓';
  color: #fff;
  font-size: 12px;
}

.agree {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 14px; 
  color: #888888;
  margin-bottom: 25px; 
  padding-left: 5px;
}

.agree a {
  color: #888888;
  text-decoration: underline;
  margin-left: 4px;
}

/* Custom button classes to override base styles */
.btn {
  width: 100%;
  padding: 14px; 
  border: none;
  border-radius: 12px;
  font-size: 18px; 
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

/* Primary blue login button */
.btn-primary {
  background: #104ef5; /* Sleek blue */
  color: #ffffff;
  margin-bottom: 20px;
}

.btn-primary:hover {
  background: #0d3ec5;
}

/* White outline Forget Password button */
.btn-outline-forgot {
  width: auto;
  min-width: 180px;
  margin: 15px auto 0;
  padding: 10px 24px;
  border: 1px solid #104ef5;
  border-radius: 20px;
  background: transparent;
  color: #104ef5;
  font-size: 15px;
  font-weight: 500;
}

.btn-outline-forgot:hover {
  background: rgba(16, 78, 245, 0.05);
}

/* Version styling label in bottom-right */
.version-label {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: #a0aec0;
  font-size: 12px;
  font-weight: 400;
  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%;
  }
}
