/* =========================================================
   EPAN — Identity Infrastructure Styles
   Scoped, Neutral, Audit-Ready
   ========================================================= */

/* ---------- Layout Helpers ---------- */
.section {
  padding: 90px 6vw;
  max-width: 1400px;
  margin: auto;
}

.section.center {
  text-align: center;
}

.container {
  max-width: 1300px;
  margin: auto;
}

/* ---------- Fade Animation ---------- */
.fade {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.9s cubic-bezier(.19,1,.22,1);
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero Tags ---------- */
.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--cyan);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(34,211,238,.12), transparent);
  border-radius: 999px;
}



/* ---------- EPAN Form ---------- */
.epan-form {
  max-width: 720px;
  margin: auto;
  display: grid;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  color: #9aa4d3;
}

.form-group input {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
}

/* ---------- Select & Option Fix (Dark Theme Safe) ---------- */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.form-group select option {
  background-color: #0b0f1c;
  color: #e5e7eb;
}

.form-group select option:checked,
.form-group select option:hover {
  background-color: #111633;
  color: var(--cyan);
}


.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(34,211,238,.15);
}


/* ---------- Checkbox ---------- */
.form-group.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #9aa4d3;
  line-height: 1.5;
}

/* FIX SIZE */
.form-group.checkbox input[type="checkbox"] {
  min-width: 18px;
  min-height: 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  cursor: pointer;
}

/* Improve clickable area */
.form-group.checkbox span {
  flex: 1;
}

/* Links */
.form-group.checkbox a {
  color: var(--cyan);
  text-decoration: none;
}


@media (max-width: 600px) {
  .form-group.checkbox {
    font-size: 15px;
    gap: 10px;
  }

  .form-group.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }
}

/* ---------- Primary Button ---------- */
.primary-btn {
  margin-top: 10px;
  padding: 15px 26px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  color: #001014;
  background: linear-gradient(135deg, var(--cyan), #38bdf8);
  transition: all .35s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(34,211,238,.35);
}


/* ---------- Submit Button ---------- */
.submit-btn {
  margin-top: 10px;
  padding: 15px 26px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  color: #001014;
  background: linear-gradient(135deg, var(--cyan), #38bdf8);
  transition: all .35s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(34,211,238,.35);
}


  .form-response {
  margin-bottom: 15px;
}

.success-msg {
  background: rgba(34,197,94,.1);
  color: #22c55e;
  padding: 12px;
  border-radius: 8px;
}

.error-msg {
  background: rgba(239,68,68,.1);
  color: #ef4444;
  padding: 12px;
  border-radius: 8px;
}


.submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}


.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}



/* ==========================
   PASSWORD FIELD STYLING
========================== */

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 44px;
}

.toggle-password {
  position: absolute;
  right: 14px;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.6;
  user-select: none;
}

.toggle-password:hover {
  opacity: 1;
}

/* Password rules list */
.password-rules {
  margin-top: 10px;
  padding-left: 18px;
  font-size: 13px;
  color: #9ca3af;
}

.password-rules li {
  margin-bottom: 4px;
  list-style: disc;
}

.password-rules li.valid {
  color: #22c55e;
}

.password-rules li.invalid {
  color: #ef4444;
}


/* =========================================================
   EPAN — Email Verification
   ========================================================= */

.verify-card {
  max-width: 520px;
  margin: auto;
  padding: 40px 34px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  text-align: center;
}

.verify-status {
  display: inline-block;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.verify-status.pending {
  color: var(--cyan);
  border: 1px solid var(--border);
  background: rgba(34,211,238,.12);
}

.verify-text {
  font-size: 14px;
  color: #cbd5f5;
  margin-bottom: 26px;
}

.otp-form {
  display: grid;
  gap: 26px;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.otp-inputs input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
}

.otp-inputs input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(34,211,238,.15);
}

.resend-area {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
  font-size: 13px;
}

.resend-area button {
  background: none;
  border: none;
  color: var(--cyan);
  cursor: pointer;
  font-weight: 600;
}

.resend-area button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.verify-note {
  margin-top: 26px;
  font-size: 12px;
  color: #9aa4d3;
}


/* =========================================================
   EPAN — Mobile & Small Screen Optimisation
   ========================================================= */

@media (max-width: 768px) {

  /* Layout */
  .section {
    padding: 64px 5vw;
  }

  h1 {
    font-size: 28px;
    line-height: 1.25;
  }

  p {
    font-size: 14px;
  }

  /* Verify Card */
  .verify-card {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .verify-text {
    font-size: 13px;
  }

  /* OTP Inputs */
  .otp-inputs {
    gap: 10px;
  }

  .otp-inputs input {
    width: 42px;
    height: 52px;
    font-size: 18px;
  }

  /* Buttons */
  .primary-btn {
    width: 100%;
    padding: 14px;
    font-size: 14px;
  }

  .submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 14px;
  }

  /* Resend Area */
  .resend-area {
    flex-direction: column;
    gap: 8px;
  }

}

/* Extra small devices (phones) */
@media (max-width: 420px) {

  .otp-inputs {
    gap: 8px;
  }

  .otp-inputs input {
    width: 38px;
    height: 48px;
    font-size: 16px;
  }

  .hero-tag {
    font-size: 11px;
    padding: 5px 12px;
  }

}

/* =========================================================
   EPAN — Mobile Verification
   ========================================================= */

.mobile-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

.country-code {
  padding: 14px 16px;
  font-size: 14px;
  color: #9aa4d3;
  border-right: 1px solid var(--border);
}

.mobile-input input {
  border: none;
  background: transparent;
  padding: 14px 16px;
  color: var(--text);
  font-size: 14px;
  flex: 1;
}

.mobile-input input:focus {
  outline: none;
}

.hidden {
  display: none;
}


/* =========================================================
   EPAN — Identity Verification
   ========================================================= */

.verify-card {
  max-width: 760px;
  margin: auto;
  padding: 36px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
  border: 1px solid var(--border);
}

.verify-status {
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  display: inline-block;
}

.verify-status.pending {
  color: #facc15;
  border: 1px solid rgba(250,204,21,.35);
  background: rgba(250,204,21,.08);
}

.verify-note {
  margin-top: 20px;
  font-size: 13px;
  color: #9aa4d3;
}



