/* ==========================================================================
   VERIFY EMAIL MODAL STYLES (GENZYNC GLASSMORPHISM)
   ========================================================================== */

.verify-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(12, 39, 48, 0.65), rgba(23, 122, 135, 0.6));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10001;
}

.verify-modal-card {
  position: relative;
  width: min(440px, 94vw);
  border-radius: 24px;
  padding: 34px 28px 28px;
  background: linear-gradient(180deg, rgba(17, 111, 121, 0.98), rgba(13, 89, 98, 0.98));
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  animation: springPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.verify-card-inner,
.verify-success-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Close Button */
.verify-modal-card .modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease, transform 0.15s ease;
  z-index: 10;
}

.verify-modal-card .modal-close-btn:hover {
  color: #ffffff;
  transform: scale(1.1);
}

/* Icon Wrap */
.verify-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(114, 242, 235, 0.12);
  border: 1.5px solid rgba(114, 242, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(114, 242, 235, 0.2);
}

.verify-mail-svg {
  width: 26px;
  height: 26px;
  stroke: #72f2eb;
}

.verify-title {
  color: #ffffff;
  font-size: 23px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.verify-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 8px;
}

/* Email Pill Badge (Prevents awkward text break) */
.verify-email-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(114, 242, 235, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 2px 0 6px;
  max-width: 90%;
}

.badge-mail-icon {
  stroke: #72f2eb;
  flex-shrink: 0;
}

.verify-target-email {
  color: #72f2eb;
  font-size: 12.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verify-expiry-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
  display: block;
}

/* Messages */
.verify-card-inner .msg-error,
.verify-card-inner .msg-success {
  margin: 0 0 14px 0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  max-width: 320px;
}

.verify-card-inner .msg-error {
  color: #ff9d9d;
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.verify-card-inner .msg-success {
  color: #72f2eb;
  background: rgba(114, 242, 235, 0.15);
  border: 1px solid rgba(114, 242, 235, 0.3);
}

/* Form Container */
.verify-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* OTP Digits Grid (Total width: 6*44 + 5*8 = 304px) */
.otp-inputs-grid {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
  width: 100%;
  max-width: 304px;
}

.otp-digit {
  width: 44px !important;
  height: 50px !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  border: 2px solid transparent !important;
  color: #115760 !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  text-align: center !important;
  outline: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.otp-digit:focus {
  border-color: #72f2eb !important;
  box-shadow: 0 0 0 3px rgba(114, 242, 235, 0.35), 0 6px 16px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(-2px);
}

.otp-digit.has-value {
  background: #f0fdfc !important;
  border-color: rgba(47, 182, 192, 0.45) !important;
}

/* Buttons (Locked to 304px to match OTP grid width) */
.verify-btn-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.verify-submit-btn,
.verify-login-btn {
  width: 100% !important;
  max-width: 304px !important;
  height: 42px !important;
  background: linear-gradient(90deg, #2fb6c0 0%, #1799a2 100%) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 6px 18px rgba(17, 111, 121, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease !important;
}

.verify-submit-btn:hover,
.verify-login-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 8px 24px rgba(17, 111, 121, 0.55) !important;
}

/* Resend Section */
.verify-resend-form {
  margin-top: 16px;
}

.verify-resend-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  margin: 0;
}

.resend-link-btn {
  background: transparent;
  border: none;
  color: #72f2eb;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  padding: 0 2px;
  text-decoration: underline;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.resend-link-btn:hover:not(:disabled) {
  color: #ffffff;
}

.resend-link-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: none;
}

/* Success State View */
.verify-success-view {
  padding: 10px 0 6px;
}

.verify-success-icon-wrap {
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
}

.verify-check-svg {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: block;
  stroke-width: 2.5;
  stroke: #72f2eb;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #72f2eb;
  animation: fillCircle 0.4s ease-in-out 0.4s forwards, scaleSuccess 0.3s ease-in-out 0.9s both;
}

.verify-check-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2.5;
  stroke-miterlimit: 10;
  stroke: #72f2eb;
  fill: none;
  animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.verify-check-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: #ffffff;
  animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes strokeCircle {
  100% { stroke-dashoffset: 0; }
}

@keyframes strokeCheck {
  100% { stroke-dashoffset: 0; }
}

@keyframes fillCircle {
  100% { box-shadow: inset 0px 0px 0px 34px #1799a2; }
}

@keyframes scaleSuccess {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}

/* Mobile Responsive (Bottom Sheet Drawer) */
@media (max-width: 768px) {
  .verify-modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  .verify-modal-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 26px 26px 0 0 !important;
    border: none !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.85) !important;
    padding: 16px 20px max(28px, calc(16px + env(safe-area-inset-bottom, 16px))) 20px !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35) !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    animation: springSheetUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  .verify-modal-card::before {
    content: '';
    display: block;
    width: 38px;
    height: 4.5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 auto 12px;
    flex-shrink: 0;
  }

  .otp-inputs-grid {
    gap: 6px;
    max-width: 276px;
  }

  .otp-digit {
    width: 39px !important;
    height: 46px !important;
    font-size: 19px !important;
    border-radius: 9px !important;
  }

  .verify-submit-btn,
  .verify-login-btn {
    max-width: 276px !important;
  }

  .verify-title {
    font-size: 21px;
  }

  .verify-subtitle {
    font-size: 12px;
  }
}

