﻿/* =========================================
   ITStudio 邮箱 OTP 验证码组件样式 (Modern Geek Style)
   ========================================= */

.itstudio-otp-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.itstudio-otp-group {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.itstudio-otp-group .itstudio-otp-input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  letter-spacing: 0.1em !important;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace) !important;
  font-weight: 600 !important;
}

.itstudio-otp-send {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, #1f6feb 0%, #1158c7 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(31, 111, 235, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
}

.itstudio-otp-send:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 4px 14px rgba(31, 111, 235, 0.45);
}

.itstudio-otp-send:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.96);
  box-shadow: 0 1px 4px rgba(31, 111, 235, 0.3);
}

.itstudio-otp-send:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.itstudio-otp-send.is-countdown {
  background: #6b7280 !important;
  border: 1px solid #7c8490 !important;
  color: #e5e7eb !important;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.itstudio-otp-send.is-loading {
  opacity: 0.85;
  cursor: wait;
}

.itstudio-otp-status {
  width: 100%;
}

/* 浅色模式适配 */
[data-theme="light"] .itstudio-otp-send {
  background: linear-gradient(135deg, #0969da 0%, #0550ae 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(9, 105, 218, 0.28);
}

[data-theme="light"] .itstudio-otp-send:hover:not(:disabled) {
  box-shadow: 0 4px 14px rgba(9, 105, 218, 0.38);
}

[data-theme="light"] .itstudio-otp-send.is-countdown {
  background: #9ca3af !important;
  border: 1px solid #9ca3af !important;
  color: #ffffff !important;
}

@media (max-width: 480px) {
  .itstudio-otp-group {
    flex-direction: column;
  }
  .itstudio-otp-send {
    width: 100%;
  }
}
