/* ============================================
   OTP — Verificación 3D Secure
   ============================================ */

.otp-card {
  background: #ffffff;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  padding: 32px 28px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
}

.otp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.otp-brand-left {
  display: flex;
  align-items: center;
}

.otp-arq-logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-primary);
  letter-spacing: 0.5px;
  font-family: inherit;
}

.otp-brand-right {
  display: flex;
  align-items: center;
}

.otp-timer-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

#otp-timer-ring {
  transition: stroke-dashoffset 1s linear;
}

.otp-instructions {
  text-align: center;
  margin-bottom: 24px;
}

.otp-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.otp-text {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0 0 16px;
}

.otp-details {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  text-align: left;
}

.otp-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
  margin-bottom: 6px;
}

.otp-detail-row:last-child {
  margin-bottom: 0;
}

.otp-detail-label {
  color: var(--color-text-muted);
  font-weight: 500;
}

.otp-detail-val {
  color: var(--color-text);
  font-weight: 700;
}

.otp-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.otp-input-wrapper {
  text-align: left;
}

.otp-input-label {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
}

.otp-code-input {
  width: 100%;
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 12px;
  padding: 12px;
  border: 2px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  outline: none;
  font-weight: 700;
  box-sizing: border-box;
  font-family: monospace, inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.otp-code-input:focus {
  border-color: var(--color-success);
  box-shadow: 0 0 0 3px rgba(48, 201, 107, 0.12);
}

.otp-input-hint {
  display: block;
  text-align: center;
  font-size: 0.725rem;
  color: var(--color-text-placeholder);
  margin-top: 6px;
}

.otp-btn-confirm {
  width: 100%;
  background: var(--color-success);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 15px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(48, 201, 107, 0.25);
  transition: all 0.2s;
}

.otp-btn-confirm:hover {
  background: var(--color-success-hover);
  transform: translateY(-1px);
}

.otp-btn-confirm:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.otp-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.825rem;
}

.otp-link {
  color: var(--color-link);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.otp-link:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

.otp-link-danger {
  color: var(--color-danger);
}

.otp-link-danger:hover {
  color: var(--color-danger-hover);
}

.otp-link-separator {
  color: var(--color-border-dark);
  user-select: none;
}
